Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface PullOptions
import { type PullOptions } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

Options for a JetStream pull subscription which define how long the pull request will remain open and limits the amount of data that the server could return.

Properties

batch: number

Max number of messages to retrieve in a pull.

no_wait: boolean

If true, the request for messages will end when received by the server

expires: number

If set, the number of milliseconds to wait for the number of messages specified in batch

max_bytes: number

If set, the max number of bytes to receive. The server will limit the number of messages in the batch to fit within this setting.

idle_heartbeat: number