I'm trying to connect to two room simultaneously. I don't know if it is possible but I pretty sure of SmartFox joinedRooms method existence.
On my custom zone I have chat and game as public and default groups:
· I have a permanent room on that zone called global and it is of chat group. It has password but is neither game room or hidden room.
· Users can create it's own game rooms of game group. This rooms are game rooms.
Users should be connected to one chat group room and one game room group (or none).
I only see last connected when I use:
Code: Select all
for each (var r:Room in Connector.smartFox.joinedRooms)
trace("onRoom: " + r.name +"\n");
Tracing I see SmartFoxServer kick me out when I send request for second room.
Is it possible do this?
Do I have to check some server var for multple room connection?