Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Subscriptions

import { Subscriptions } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class Subscriptions {
constructor();
mux: SubscriptionImpl | null;
sidCounter: number;
subs: Map<number, SubscriptionImpl>;
 
all(): (SubscriptionImpl)[];
cancel(s: SubscriptionImpl): void;
close();
get(sid: number): SubscriptionImpl | undefined;
getMux(): SubscriptionImpl | null;
handleError(err?: NatsError): boolean;
setMux(s: SubscriptionImpl | null): SubscriptionImpl | null;
size(): number;
}

§Constructors

§
new Subscriptions()
[src]

§Properties

§
sidCounter: number
[src]
§
subs: Map<number, SubscriptionImpl>
[src]

§Methods

§
cancel(s: SubscriptionImpl): void
[src]
§
close()
[src]
§
get(sid: number): SubscriptionImpl | undefined
[src]
§
getMux(): SubscriptionImpl | null
[src]
§
handleError(err?: NatsError): boolean
[src]
§
setMux(s: SubscriptionImpl | null): SubscriptionImpl | null
[src]
§
size(): number
[src]