Skip to content

ServerToPlayer beta ​

TypeAlias of @v12-engine/engine

ts
export type ServerToPlayer = LobbyServerMessage | Extract<RelayNotice, {
    type: 'waiting' | 'ended';
}>;

What a player is told besides the game: a server's lobby, a pause, the result, or, watching through a relay, that nothing is shared yet or that the game watched ended