Pular para o conteúdo
Português (BR)

JetStreamPublish

Este conteúdo não está disponível em sua língua ainda.

JetStreamPublish = object

Defined in: src/io/broker/JetStreamActor.ts:85

Outbound JetStream publish — payload + optional dedupe headers.

readonly optional expectedLastSeq?: number

Defined in: src/io/broker/JetStreamActor.ts:97

Optional expected last sequence — server rejects the publish if the stream’s last seq doesn’t match (optimistic concurrency).


readonly optional headers?: Readonly<Record<string, string>>

Defined in: src/io/broker/JetStreamActor.ts:99

Extra headers (free-form).


readonly optional messageId?: string

Defined in: src/io/broker/JetStreamActor.ts:92

Optional dedupe id — sent as Nats-Msg-Id header so a re-publish within the stream’s deduplication window is idempotent.


readonly payload: Uint8Array | string

Defined in: src/io/broker/JetStreamActor.ts:87


readonly subject: string

Defined in: src/io/broker/JetStreamActor.ts:86