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
Optional
checkAPI: 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
Optional
payload: Payloadthe message's data
Optional
options: Partial<JetStreamPublishOptions>the optional message
A type for interacting data stored in JetStream