am using SFS pro
how can I determine the room that the user join when the user log in for the first time?
how to determine the room that the user join when the user log in for the first time?
Re: how to determine the room that the user join when the user log in for the first time?
Hi,
typically you have defined a number of Rooms in your Zone under the config.xml file.
One of these room can be set to "autoJoin". If an autoJoin Room exists and the client calls the autoJoin() method then he will be joined there.
https://www.smartfoxserver.com/docs/1x/ ... l#autoJoin
Cheers
typically you have defined a number of Rooms in your Zone under the config.xml file.
One of these room can be set to "autoJoin". If an autoJoin Room exists and the client calls the autoJoin() method then he will be joined there.
https://www.smartfoxserver.com/docs/1x/ ... l#autoJoin
Cheers
Re: how to determine the room that the user join when the user log in for the first time?
What if I want to make males join a room different from the room which females join in the first login (when they log in for the first time )?
After that, the room which they log out will be stored to join it when they log in again .
After that, the room which they log out will be stored to join it when they log in again .
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 79 guests