Join two rooms at the same time

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
psych
Posts: 5
Joined: 23 May 2012, 13:27

Join two rooms at the same time

Post by psych »

What i am trying to do is have users enter The Lobby right after login but when the user selects opponent then two of them will join another created room named "Game".

The problem is when the user joins the "Game" room it automatically is being disconnected from the previously joined "Lobby" room and i would like to avoid that and keep it in the "Lobby" at the same time as in new "Game" room. Is it possible to do that and how please?

Thanks in advance,
Best regards
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Join two rooms at the same time

Post by Bax »

Check the API documentation for room creation/joining: you have a parameter to pass to prevent the user to leave the room he already joined.
Paolo Bax
The SmartFoxServer Team
Post Reply