Skip to content

PlayerStateChangedPayload

What playerStateChanged gets: the payload a handler receives.

type PlayerStateChangedPayload = {
player: PlayerSnapshot; fromState: PlayerState; toState: PlayerState;
};
Field Type Description
player PlayerSnapshot The player.
fromState PlayerState The state before.
toState PlayerState The state now.