Is there any way to close the session when the moderator leaves?
These are for tokenized system but it’s possible to customize
can you explain “tokenized system” to me?
The keyword is JWT. This is a mechanism to moderate clients’ rights using a client side token. This is not essential for your goal but the linked solution is only working on a tokenized environment.
The problem when there is no authentication system, is there is always a moderator in the room. When a moderattor leaves, someone else becames moderator automaticly.