Create Room for Players

Cheers to Phaser Community :smile: :wave:

I´m relative new to phaser, im trying to make a game where any player when they are already in the game they can create like a room. A room where others 3 player can join and play. and if the room is full (4 players) others players can just enter to spectate.

Im struggling a bit with this beacuse in the tutorials i have seen the players can enter in the game directly just if they connect. But in this case i want that any player first create a room and then others players can join.

If anyone can give a clue of how to do this with phaser i will be very grateful. Or at least tell me if is possible :pray:

Thanks in Advance :relaxed: