Thanks for your reply! I'm a newbie with the api so i don't think i used the best practices but i basically have two arrays, one of them keeps tracks of all of the players online and the other one its a array the diferrent rooms. When a player creates a room, his id its added to the rooms array and when a player joins to that room his id its added to the room object inside that array and after that the system checks to only room empty rooms! I can share you the code on github if you want. Beware, its mostly spaghetti!
lol that's how my code is as well. I was thinking it worked something along those lines where you would have an empty array that you would append to when a room is created which you could sync through the server with an rset for that variable the only thing im not to sure about is the instancing the correct players in the correct room.