The property stores the id of the last room joined by the current user.
In most multiuser applications users can join one room at a time: in this case this property represents the id of the current room.
If multi-room join is allowed, the application should track the various id(s) in an array (for example) and this property should be ignored.
In most multiuser applications users can join one room at a time: in this case this property represents the id of the current room.
If multi-room join is allowed, the application should track the various id(s) in an array (for example) and this property should be ignored.


Version:
SmartFoxServer Basic / Pro

The following example shows how to retrieve the current room object (as an alternative to the GetActiveRoom()()() method).
CopyC#

Room room = smartFox.GetRoom(smartFox.activeRoomId);
Debug.WriteLine("Current room is: " + room.GetName());
