Class Stream<T, ClientType>

Stream implements an Asynchronous Iterable over messages received from a topic. As such can be used with constructs like for-await-of, yield*, array destructing, etc.

Type Parameters

  • T
  • ClientType = any

Constructors

Properties

callback: undefined | ((env: Envelope) => Promise<void>)
messages: T[]
onConnectionLost?: OnConnectionLostCallback
resolvers: ((value: IteratorResult<T, any>) => void)[]
subscriptionManager?: SubscriptionManager
topics: string[]

Methods