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

An interface that reports via a promise when an object such as a connection or subscription closes.

Properties

closed: Promise<void>

A promise that when resolves, indicates that the object is closed.