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

    Class ChannelBroker<Topic, Message, RPCRequest, RPCResponse>

    Routes RPC requests and topic messages between connected actor channels.

    Type Parameters

    • Topic extends string

      The topic identifier type.

    • Message

      The published message type.

    • RPCRequest

      The RPC request payload type.

    • RPCResponse

      The RPC response payload type.

    Index
    channelAttachments: Map<ActorChannelPair, ChannelAttachment<Topic>> = ...

    Attachments associated with the broker's channels.

    • Handles an encoded protocol message received from a channel.

      Parameters

      • sender: ActorChannelPair

        The channel that sent the message.

      • message: ArrayBuffer

        The MessagePack-encoded protocol message.

      Returns void

    • Marks a channel as authenticated under the host application's identity policy and emits an attachment event.

      This operation is intentionally one-way. Transport authentication remains the responsibility of the server and its HTTPS/WebSocket stack.

      Parameters

      • channel: ActorChannelPair

        The channel whose application-level identity was verified.

      Returns void