Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface RequestOptions
import { type RequestOptions } from "https://deno.land/x/natsws@v1.29.2/src/nats-base-client.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