kkrpc
    Preparing search index...

    Interface NatsTransportOptions

    Options for connecting a kkrpc transport to NATS.

    interface NatsTransportOptions {
        __connect?: () => Promise<NatsConnectionLike>;
        localPeerId: string;
        queueGroup?: string;
        remotePeerId?: string;
        servers?: string | string[];
        subject?: string;
        timeout?: number;
    }
    Index

    Properties

    __connect?: () => Promise<NatsConnectionLike>

    Optional NATS connection factory override used by tests and custom integrations.

    localPeerId: string

    Stable id for this endpoint; used to filter self-delivered messages.

    queueGroup?: string

    Optional queue group for load-balanced subscription delivery.

    remotePeerId?: string

    Optional target endpoint id for point-to-point delivery.

    servers?: string | string[]

    NATS server URL or URLs. Defaults to nats://localhost:4222.

    subject?: string

    Subject used to exchange kkrpc bus envelopes.

    timeout?: number

    NATS connection timeout in milliseconds.