Static
eventReadonly
playerThe player that this event is for.
Readonly
roomThe room or client that the event came from.
The altered player that will be made host instead, if changed.
Change the player that was made host.
The player to make host.
Generated using TypeDoc
Emitted when a player becomes the host of the room.
This event contains a
setHost
method that does not do anything in SkeldJS as the host of the room is decided by the server, making it impossible to alter the host as a client.A server implementation may implement this by overriding the functions in Hostable responsible for updating the host.