joinRoom
Documentation on the joinRoom packet sent by the client to the server.
Last updated
Documentation on the joinRoom packet sent by the client to the server.
Last updated
This packet is sent by the client whenever a with a joinRoom
property is collided with, and tells the server the new room the player should be put in. First, the client is sent a reciprocated packet specifying the in the room. Then, server propagates that event to all the other players in the current room telling them a certain player left, and propagates an event to the players in the new room that a certain player had joined.
roomId
string
The room ID of the new room to put the player in.