Constructor
new JoinRoomInvitationRequest(targetRoom, invitedUserNames, parametersopt, expirySecondsopt, asSpectatoropt)
Pass the instance to the SmartFox#send method to validate and execute the request.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
targetRoom | SFSRoom | The object representing the Room to join (must have free User/Player/Spectator slots). | ||
invitedUserNames | Array.<string> | A list of names of the Users to invite. | ||
parameters | SFSObject | <optional> | null | An object containing any relevant parameter or message to be sent to the invited users, for example an Invitation message. |
expirySeconds | number | <optional> | 30 | The number of seconds before the Invitation expires. |
asSpectator | boolean | <optional> | false | In Game Rooms only, indicates if the invited User/s should join as Spectator/s instead of Player/s. |