Get the list of rooms in the current zone.
Unlike the GetRoomList()()() method, this method returns the list of Room objects already stored on the client, so no request is sent to the server.
Unlike the GetRoomList()()() method, this method returns the list of Room objects already stored on the client, so no request is sent to the server.
The list of rooms available in the current zone.
Version:
SmartFoxServer Basic / Pro
The following example shows how to retrieve the room list.
CopyC#
Hashtable rooms = smartFox.GetAllRooms(); foreach (Room room in rooms.Values) { Trace.WriteLine("Room: " + room.getName()); }