Interface INatsMessageConsumerContext<T>

A message consumer context.

interface INatsMessageConsumerContext<T> {
    ack: (() => void);
    message: T;
    noAck: boolean;
}

Type Parameters

  • T

Properties

Properties

ack: (() => void)

The function to call to ack a message.

Type declaration

    • (): void
    • The function to call to ack a message.

      Returns void

message: T

The received message.

noAck: boolean

Do not ack a message automatically.

Generated using TypeDoc