OptionalfakeIf set to true or false, the room will set its password-protected status to your value. Passing null or omitting this key disables this behaviour.
The geolocation value of the room about to be created.
Whether to hide the owner of the room or not.
The maximum allowed player count in the room.
Name of the room.
OptionalnoDetermines whether a player object will be created for the room host or not.
OptionalpasswordA password string to protect the room. omit or null for no password.
OptionalplayerIf set to an integer value, fixes the current player count to this specific value.
Whether to show this room in the room list or not.
Thumbnail(to show in room list) of the room.
Background tint color(to show in room list) of the room.
In order to create a room, we have to solve a recaptcha challenge and write the resulting token into this key. The recaptcha token can be originally obtained from https://moo-hoo.com/mooball/headlesstoken. However, this url will be different while using a custom backend server.
OptionalunlimitedIf set to true, bypasses the player count checks, resulting in unlimited maximum player count. However, the default backend will not show the room in the room list if the player count > 30.
OptionalonCalled just before any connection is about to be established with a peer. You are supposed to return null to allow, or a string to block the user from joining the room with the custom message string.
The thrown error.
Id of the player that caused the error.
The thrown error.
The thrown error.
null|string.
OptionalonCalled when a exception is thrown by one of the client connections. playerId is the id of the player that caused the exception. The player's connection will be closed just after this callback is executed.
The thrown error.
Id of the player that caused the error.
void.
Endpoint of the room.