ServerMessage
ServerMessage =
Ack| {id?:string;now:number;t:"pong"; } | {doc:TableDocument;rev:number;t:"table.snapshot";table:string; } | {from:number;ops:JsonPatchOp[];rev:number;t:"table.patch";table:string; } | {name:string;payload:Json;rev:number;t:"table.event";table:string; } | {reason:"ended"|"closed"|"game-removed"|"expired";t:"table.closed";table:string; } | {doc:LobbyDocument;rev:number;t:"lobby.snapshot"; } | {from:number;ops:JsonPatchOp[];rev:number;t:"lobby.patch"; } | {code:number;reason:string;t:"bye"; }
Defined in: protocol/messages.ts:103
