NatsBroker.prototype.subscribe<T>(): Promise<ISubscription>
Subscribes to a topic using JetStream durable consumers.
handler: MessageHandler<T>
The handler to invoke for each message
optional
options: SubscribeOptions
Optional subscription options (queue for durable consumer name)
Promise<ISubscription>
The subscription handle