edgeport - v1.0.3
    Preparing search index...

    Interface StompSubscription

    An active subscription that yields StompMessages as they arrive.

    Iterate it with for await; the loop ends when unsubscribe is called or the connection closes. It is an AsyncDisposable, so await using unsubscribes automatically.

    1.0.0

    interface StompSubscription {
        destination: string;
        id: string;
        "[asyncDispose]"(): PromiseLike<void>;
        "[asyncIterator]"(): AsyncIterator<StompMessage, any, any>;
        unsubscribe(): Promise<void>;
    }

    Hierarchy

    • AsyncIterable<StompMessage>
    • AsyncDisposable
      • StompSubscription
    Index
    destination: string

    The destination this subscription matches.

    id: string

    The broker-facing subscription id.

    • Returns PromiseLike<void>

    • Returns AsyncIterator<StompMessage, any, any>

    • Stops the subscription (UNSUBSCRIBE) and ends the iterator.

      Returns Promise<void>

      Resolves once the UNSUBSCRIBE is written.