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

    Type Alias ActorChannelEventMap<RPCResponse, Topic, Message>

    Maps each event dispatched by ActorChannel to its tuple payload.

    type ActorChannelEventMap<RPCResponse, Topic, Message> = {
        message: [topic: Topic, Message];
        response: [id: string, response?: RPCResponse];
    }

    Type Parameters

    • RPCResponse

      The RPC response payload type.

    • Topic

      The topic identifier type.

    • Message

      The published message type.

    Index
    message: [topic: Topic, Message]

    A subscribed topic and the message published to it.

    response: [id: string, response?: RPCResponse]

    An RPC request identifier and its optional response payload.