Interface NatsSubscriptionType
Properties
isClosed
isClosed: boolean
Optional
queue
queue?: string
Methods
[asyncIterator]
- [asyncIterator](): AsyncIterableIterator<NatsJsMsg>
Returns AsyncIterableIterator<NatsJsMsg>
drain
- drain(): Promise<void>
Returns Promise<void>
Promise
unsubscribe
- unsubscribe(): void
Returns void
Indicates whether this subscription is currently active.