import { SubscriptionImpl } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";
Constructors
Properties
optional
cleanupFn: (sub: Subscription, info?: unknown) => voidclosed: Deferred<void>
protocol: ProtocolHandler
optional
timer: Timeout<void>Methods
cancelTimeout(): void
close(): void
drain(): Promise<void>
getID(): number
getMax(): number | undefined
getSubject(): string
isClosed(): boolean
isDraining(): boolean
setPrePostHandlers(opts: { ingestionFilterFn?: IngestionFilterFn<Msg>; protocolFilterFn?: ProtocolFilterFn<Msg>; dispatchedFn?: DispatchedFn<Msg>; })
unsubscribe(max?: number): void