import { type ConsumerOpts } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";
Properties
config: Partial<ConsumerConfig>
The consumer configuration
optional
callbackFn: JsMsgCallbackAn optional callback to process messages - note that iterators are the preferred way of processing messages.
Only applicable to push consumers. When set to true, the consumer will be an ordered consumer.
Standard option for all subscriptions. Defines the maximum number of messages dispatched by the server before stopping the subscription. For JetStream this may not be accurate as JetStream can add additional protocol messages that could count towards this limit.
Only applicable to push consumers, allows the pull subscriber to horizontally load balance.