Class: RegisterEvent

RegisterEvent(playerId, sessionId)

Class representing a Register Event sent from the server, Register Event is when the player establish its connection with the server and the player is assigned a player id and session id

Constructor

new RegisterEvent(playerId, sessionId)

Parameters:
Name Type Description
playerId string

unique player id assigned once the connection is established using uuid package

sessionId string

unique identifier of the session using the |Sec-WebSocket-Key| header

Source:

Extends