I am trying to put together an app based on chat rooms where each room can only have 2 people in the room.
It also needs to remember the order in which the users entered the room. It is to extend on a chatroom type socket example but allow the use of "rooms" for pairs of people who can then play "the random game" i.e.there will be a "lobby" of rooms or "create a room" and each room will either be 1 person in or 2 people (and full).
What I cannot seem to figure out is how to limit the number of people connecting to a room in socket.io?
It is possible?