Interface for JetStream Message

interface NatsJsMsg {
    data: Uint8Array;
    headers?: {
        [key: string]: string;
    };
    info: NatsDeliveryInfo;
    seq: number;
    subject: string;
    ack(): void;
    inProgress(): void;
    nak(): void;
    term(): void;
    working(): void;
}

Properties

data: Uint8Array
headers?: {
    [key: string]: string;
}
seq: number
subject: string

Methods