leaveRoom()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.leaveRoom(roomId <integer>)

Description:

Disconnect the user from the specified room. This method should be used only when you allow users to be present in more than
one room at the same time.

Parameters:

roomId   the id of the room you want to leave

Returns:

nothing

Example:

smartFox.leaveRoom(6)

See also:

joinRoom()