Constructor
new QuickJoinGameRequest(whereToSearch, matchExpressionopt, roomToLeaveopt)
Creates a new instance of the QuickJoinGameRequest 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 |
|---|---|---|---|---|
whereToSearch | Array.<SFSRoom> | | A list of SFSRoom objects or Group names among which a Game Room to join should be searched; the maximum number of elements in this list is 32. | ||
matchExpression | MatchExpression | <optional> | null | A matching expression containing additional criteria to refine the Game Room search; if null, the first available Room is joined. |
roomToLeave | SFSRoom | <optional> | null | An object representing a previously joined Room that the User should leave when joining the Game Room. |
Fires: