Automatically join the the default room (if existing) for the current zone.
A default room can be specified in the SmartFoxServer server-side configuration by adding the autoJoin = "true" attribute to one of the <Room>> tags in a zone.
When a room is marked as autoJoin it becomes the default room where all clients are joined when this method is called.
A default room can be specified in the SmartFoxServer server-side configuration by adding the autoJoin = "true" attribute to one of the <Room>> tags in a zone.
When a room is marked as autoJoin it becomes the default room where all clients are joined when this method is called.

C# | Visual Basic | Visual C++ |
public void AutoJoin()
Public Sub AutoJoin
public: void AutoJoin()

Sends:
SFSEvent..::.OnJoinRoomDelegate
SFSEvent..::.OnJoinRoomErrorDelegate
Version:
SmartFoxServer Basic / Pro

The following example shows how to join the default room in the current zone.
CopyC#

smartFox.AutoJoin();
