PlayerDisconnectedPayload
What playerDisconnected gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerDisconnectedPayload = { player: PlayerSnapshot; reason: string };Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
reason |
string |
Why, as the server recorded it: disconnected when they simply left. |
Related
Section titled “Related”playerDisconnected: the event