Hi everyone,
Is there any example on how to use multiple rooms? And also how to share the authentication between different rooms?
In my current flow I'm logging the user using a first game-room, sending credentials and using the onAuth method in the Room server.
But then I would like to use different rooms for different maps, so which will be the best way to accomplish this?
I know I can use room = client.join('game_room', userData);
on the client side but what should I do to leave the room and move the user from one room to the other?
Also, will be possible to validate if the user was already authenticated before leave the first room? I really don't want to run all the validation process through the DB again.
Maybe I could leave one room available as "logged-users" and allow users to join other rooms by checking if they are "active" in that specific room, I did some tests on that but didn't find a way to access other rooms on server side.
Thanks again!