Returns the JS API prefix as processed from the JetStream Options
Returns the interface for accessing Consumers. Consumers allow you to process messages stored in a stream. To create a consumer use JetStreamManager.
Returns the interface for accessing Streams.
Accessor for the JetStream materialized views API
Similar to pull, but able to configure the number of messages, etc. via PullOptions.
the name of the stream
the consumer's durable name (if durable) or name if ephemeral
Optional
opts: Partial<PullOptions>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 NoResponders error.
the subject for the message
Optional
payload: Payloadthe message's data
Optional
options: Partial<JetStreamPublishOptions>the optional message
Creates a pull subscription. A pull subscription relies on the client to request more messages from the server. If the consumer doesn't exist, it will be created matching the consumer options provided.
It is recommended that a consumer be created first using JetStreamManager APIs and then use the bind option to simply attach to the created consumer.
If the filter subject is not specified in the options, the filter will be set to match the specified subject.
It is more efficient than fetch or pull because a single subscription is used between invocations.
a subject used to locate the stream
Creates a push subscription. The JetStream server feeds messages to this subscription without the client having to request them. The rate at which messages are provided can be tuned by the consumer by specifying ConsumerConfig.rate_limit_bps and/or maxAckPending.
It is recommended that a consumer be created first using JetStreamManager APIs and then use the bind option to simply attach to the created consumer.
If the filter subject is not specified in the options, the filter will be set to match the specified subject.
a subject used to locate the stream
Generated using TypeDoc
Interface for interacting with JetStream data