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

The API for interacting with JetStream resources

Properties

consumers: ConsumerAPI

JetStream API to interact with Consumers

streams: StreamAPI

JetStream API to interact with Streams

Methods

getAccountInfo(): Promise<JetStreamAccountStats>

Returns JetStreamAccountStats for the current client account.

advisories(): AsyncIterable<Advisory>

Returns an async iteartor

getOptions(): JetStreamOptions

Returns the JetStreamOptions used to create this JetStreamManager

jetstream(): JetStreamClient

Returns a JetStreamClient created using the same options as this JetStreamManager