Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface JetStreamOptions
Re-export
import { type JetStreamOptions } from "https://deno.land/x/natsws@v1.29.2/src/mod.ts";

Options to a JetStream options applied to all JetStream or JetStreamManager requests.

Properties

optional
apiPrefix: string

Prefix required to interact with JetStream. Must match server configuration.

optional
timeout: number

Number of milliseconds to wait for a JetStream API request.

optional
domain: string

Name of the JetStream domain. This value automatically modifies the default JetStream apiPrefix.