couch-kit
    Preparing search index...

    Type Alias HostMessageEffect<S>

    HostMessageEffect:
        | { kind: "setPlayerId"; playerId: string }
        | { kind: "hydrate"; state: S }
        | { kind: "pong"; payload: PongPayload }

    A side-effect descriptor produced by interpretHostMessage. The client hook executes these against React state so the routing logic itself stays pure and testable.

    Type Parameters

    • S