Constructor
new CreateRoomRequest(settings, autoJoinopt, roomToLeaveopt)
Creates a new instance of the CreateRoomRequest 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 |
|---|---|---|---|---|
settings | RoomSettings | An object containing the Room configuration settings. | ||
autoJoin | boolean | <optional> | false | If true, the Room is joined as soon as it is created. |
roomToLeave | SFSRoom | <optional> | null | An object representing a previously joined Room that should be left if the new Room is auto-joined. |