Interface INatsConsumerOptions

Options for NatsConsumer<T> class.

interface INatsConsumerOptions {
    abortController?: Nilable<AbortController>;
    client: NatsClient;
    noAutoAck?: Nilable<boolean>;
    streamName: string;
}

Properties

abortController?: Nilable<AbortController>

A custom AbortController.

client: NatsClient

The underlying client.

noAutoAck?: Nilable<boolean>

Should not do an automatic ACK in every message.

streamName: string

The name of the underlying stream.

Generated using TypeDoc