SmartFoxServer Unity/.NET API
LeaveRoom Method (roomId)
NamespacesSmartFoxClientAPISmartFoxClientLeaveRoom(Int32)
Disconnect the user from the given room.
This method should be used only when users are allowed to be present in more than one room at the same time (multi-room join feature).
Declaration Syntax
C#Visual BasicVisual C++
public void LeaveRoom(
	int roomId
)
Public Sub LeaveRoom ( _
	roomId As Integer _
)
public:
void LeaveRoom(
	int roomId
)
Parameters
roomId (Int32)
the id of the room to leave.
Remarks

Sends:
SFSEvent..::.OnRoomLeftDelegate

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to make a user leave a room.
CopyC#
smartFox.LeaveRoom(15);
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)