couch-kit
    Preparing search index...

    Type Alias HostMessage

    HostMessage:
        | {
            payload: { playerId: string; serverTime: number; state: unknown };
            type: "WELCOME";
        }
        | {
            payload: { action?: unknown; newState: unknown; timestamp: number };
            type: "STATE_UPDATE";
        }
        | {
            payload: { id: string; origTimestamp: number; serverTime: number };
            type: "PONG";
        }
        | { payload: { playerId: string; state: unknown }; type: "RECONNECTED" }
        | { payload: { code: string; message: string }; type: "ERROR" }