Setu-TS
    Preparing search index...

    Interface IServiceBusTransport

    Domain port for Azure Service Bus operations.

    interface IServiceBusTransport {
        close(): Promise<void>;
        createSubscription(topic: string, subscription: string): Promise<void>;
        deleteSubscription(topic: string, subscription: string): Promise<void>;
        isHealthy?(): Promise<boolean | undefined>;
        open(
            topic: string,
            subscription: string,
            onMessage: (
                msg: {
                    ack: () => void;
                    applicationProperties?: Readonly<Record<string, string>>;
                    messageId?: string;
                    nack: () => void;
                    payload: string;
                    timestamp?: Date;
                },
            ) => void
            | Promise<void>,
        ): Promise<IServiceBusSubscription>;
        send(
            topic: string,
            body: string,
            applicationProperties?: Readonly<Record<string, string>>,
            messageId?: string,
        ): Promise<void>;
    }
    Index
    • Reports whether the Service Bus namespace is reachable (optional, M70c).

      The real adapter peeks the namespace via its existing client; a transport without a liveness check omits it and the broker reports unknown reachability. The SDK owns streaming-pull reconnection, so the broker issues no reconnect loop of its own.

      Resolving undefined means could not determine — the probe itself failed rather than the namespace answering (V5-2). Widened from Promise<boolean> in 0.5.1; an implementation that still resolves a plain boolean satisfies it unchanged.

      Returns Promise<boolean | undefined>

    • Open a receiver on a topic subscription.

      Parameters

      • topic: string
      • subscription: string
      • onMessage: (
            msg: {
                ack: () => void;
                applicationProperties?: Readonly<Record<string, string>>;
                messageId?: string;
                nack: () => void;
                payload: string;
                timestamp?: Date;
            },
        ) => void
        | Promise<void>

        Called per delivered message

      Returns Promise<IServiceBusSubscription>

    • Send a body to a topic.

      Parameters

      • topic: string
      • body: string
      • OptionalapplicationProperties: Readonly<Record<string, string>>
      • OptionalmessageId: string

        Native Service Bus message id (M106 §3.3): a repeated id is de-duplicated only on an entity configured with duplicate detection

      Returns Promise<void>