Constructor
new PlayerToSpectatorRequest(targetRoomopt)
Creates a new instance of the PlayerToSpectatorRequest 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 |
|---|---|---|---|---|
targetRoom | SFSRoom | <optional> | null | The object representing the Room in which the Player should be turned to Spectator; if null, the last Room joined by the User is used. |