getActiveRoomId()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.getActiveRoomId()

Description:

The handler returns the id of the last room the user has entered.
In most multiuser applications users can join one room at a time: in this case the property value represents the id of the current room.
If you're allowing the clients join more than one room at the same time you will have to track the various id(s) in an array for example and this
property should be ignored.

Parameters:

none      

Returns:

Returns the id of the last room the user has entered.

Example:

put("CurrentRoom ID is : " & smartfox.getActiveRoomId())

See also:

getRoom()