Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface JetStreamOptions
Re-export
import { type JetStreamOptions } from "https://deno.land/x/natsws@v1.28.0/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.