Constructor
new SpectatorToPlayerRequest(targetRoomopt)
Creates a new instance of the SpectatorToPlayerRequest 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 Spectator should be turned to Player; if null, the last Room joined by the User is used. |