Get the currently active {@link Room} object.
SmartFoxServer allows users to join two or more rooms at the same time (multi-room join). If this feature is used, then this method is useless and the application should track the various room id(s) manually, for example by keeping them in an array.
SmartFoxServer allows users to join two or more rooms at the same time (multi-room join). If this feature is used, then this method is useless and the application should track the various room id(s) manually, for example by keeping them in an array.


the Room object of the currently active room; if the user joined more than one room, the last joined room is returned.

Version:
SmartFoxServer Basic / Pro

The following example shows how to retrieve the current room object.
CopyC#

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