Returns the JS API prefix as processed from the JetStream Options
Returns an object for accessing Consumers. Consumers allow you to process messages stored in a stream. To create a consumer use JetStreamManager.
Returns an object for accessing Streams.
Returns a JetStreamManager that uses the same JetStreamOptions as the current JetStream context
OptionalcheckAPI: booleanPublishes a message to a stream. If not stream is configured to store the message, the request will fail with RequestError error with a nested NoRespondersError.
the subject for the message
Optionalpayload: Payloadthe message's data
Optionaloptions: Partial<JetStreamPublishOptions>the optional message
Starts a batch publish operation on a stream by publishing this first message. Additional messages are added to the batch using the returned Batch API and committing the batch.
Optionalpayload: PayloadOptionalopts: Partial<JetStreamPublishOptions>
A type for interacting data stored in JetStream