Constructor
new LeaveRoomRequest(roomopt)
Creates a new instance of the LeaveRoomRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
room | SFSRoom | <optional> | null | The object representing the Room that the User wants to leave; if null, the last Room joined by the client is left. |