Skip to main content

jetstream_context

Function jetstream_context 

Source
pub fn jetstream_context(client: Client) -> Context
Expand description

Creates the default JetStream context, using JS_DOMAIN as the domain if set.

Equivalent to jetstream_context_from_env with JS_DOMAIN.

ยงArguments

  • client - Connected NATS client; the context takes ownership of it.