Skip to content

PlayerDisconnectedPayload

What playerDisconnected gets: the payload a handler receives.

type PlayerDisconnectedPayload = { player: PlayerSnapshot; reason: string };
Field Type Description
player PlayerSnapshot The player.
reason string Why, as the server recorded it: disconnected when they simply left.