SubscriptionImpl
import { SubscriptionImpl } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class SubscriptionImpl extends QueuedIteratorImpl<Msg> implements Base, Subscription { }
cleanupFn?: (sub: Subscription, info?: unknown) => void;
closed: Deferred<void>;
drained?: Promise<void>;
draining: boolean;
info?: unknown;
max?: number;
protocol: ProtocolHandler;
queue?: string;
requestSubject?: string;
sid: number;
subject: string;
timer?: Timeout<void>;
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;
§Properties
§
cleanupFn: (sub: Subscription, info?: unknown) => void
[src]§
protocol: ProtocolHandler
[src]§Methods
§
setPrePostHandlers(opts: {
[src]ingestionFilterFn?: IngestionFilterFn<Msg>;
protocolFilterFn?: ProtocolFilterFn<Msg>;
dispatchedFn?: DispatchedFn<Msg>;
})