@sovereignbase/actor-channel
    Preparing search index...

    Type Alias Context<Topic, Message, RPCRequest, RPCResponse>

    Context:
        | { detail: RPCRequest; id: string; kind: "request" }
        | { detail?: RPCResponse; id: string; kind: "response" }
        | {
            detail: Message;
            from: "server" | "client";
            kind: "publish";
            topic: Topic;
        }
        | {
            amount?: number;
            from: "server"
            | "client";
            kind: "subscribe";
            topic: Topic;
        }
        | {
            amount?: number;
            from: "server"
            | "client";
            kind: "unsubscribe";
            topic: Topic;
        }
        | {
            detail: | { count: number; prev: number; var: "rpcBrokers" }
            | { ping: true; var: "rpcBrokers" };
            kind: "internal";
        }

    A message exchanged between an ActorChannel and a ChannelBroker, or between browsing contexts belonging to the same actor-channel swarm.

    Type Parameters

    • Topic

      The topic identifier type.

    • Message

      The published message type.

    • RPCRequest

      The RPC request payload type.

    • RPCResponse

      The RPC response payload type.