SubscriptionHandle

An Async Iterable subscription stream. Each entry will be a [SubscriptionResult that may or may not contain a SubscriptionMessage.

Extends

Methods

  • setCallbackHandler

  • delete

    • delete(): void

      Delete the handle. This will close the stream and dispose of the resources used by it.

      Returns void

  • isDeleted

    • isDeleted(): boolean

      Has the handle been deleted?

      Returns boolean

  • next

  • [asyncIterator]

    • [asyncIterator](): AsyncIterableIterator<T>

      A stream handle object that will iterate through Stream Messages. If a StatusCode is returned then this will indicate the cause of an error that may be recoverable. If this stream recovers the api will handle the recovery automatically.

      Returns AsyncIterableIterator<T>

Properties

Also in this Section