Static
eventReadonly
clientThe client that is attempting to join the room.
Readonly
foundThe room that was found, or undefined
if there is no room on the
server with the code.
Readonly
gameThe game code that the player used to search for a room.
The client that is attempting to join the room.
The game code that the player used to search for a room.
The room that was found, or undefined
if there is no room on the
server with the code.
Generated using TypeDoc
Emitted before a player successfully or unsuccessfully joins a room on the server.
This event allows you to redirect the player to another game, or to completely prevent them from joining.
A better event to use for when a player has successfully joined a room is the
player.join
event.Example