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

Properties

timeout: number

number of milliseconds before the request will timeout.

optional
headers: MsgHdrs

MsgHdrs to include with the request.

optional
noMux: boolean

If true, the request API will create a regular NATS subscription to process the response. Otherwise a shared muxed subscriptions is used. Requires reply

optional
reply: string

The subject where the response should be sent to. Requires noMux