JetStreamPublish
Defined in: src/io/broker/JetStreamActor.ts:87
Outbound JetStream publish — payload + optional dedupe headers.
Properties
Section titled “Properties”expectedLastSeq?
Section titled “expectedLastSeq?”
readonlyoptionalexpectedLastSeq?:number
Defined in: src/io/broker/JetStreamActor.ts:99
Optional expected last sequence — server rejects the publish if the stream’s last seq doesn’t match (optimistic concurrency).
headers?
Section titled “headers?”
readonlyoptionalheaders?:Readonly<Record<string,string>>
Defined in: src/io/broker/JetStreamActor.ts:101
Extra headers (free-form).
messageId?
Section titled “messageId?”
readonlyoptionalmessageId?:string
Defined in: src/io/broker/JetStreamActor.ts:94
Optional dedupe id — sent as Nats-Msg-Id header so a re-publish
within the stream’s deduplication window is idempotent.
payload
Section titled “payload”
readonlypayload:string|Uint8Array<ArrayBufferLike>
Defined in: src/io/broker/JetStreamActor.ts:89
subject
Section titled “subject”
readonlysubject:string
Defined in: src/io/broker/JetStreamActor.ts:88