NatsConnectionImpl
import { NatsConnectionImpl } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class NatsConnectionImpl implements NatsConnection { }
_services: ServicesAPI;
draining: boolean;
get features(): Features;
listeners: QueuedIterator<Status>[];
options: ConnectionOptions;
protocol: ProtocolHandler;
_check(
subject: string,
sub: boolean,
pub: boolean,
);async close();
closed(): Promise<void | Error>;
async context(): Promise<Context>;
drain(): Promise<void>;
flush(): Promise<void>;
getServer(): string;
getServerVersion(): SemVer | undefined;
isClosed(): boolean;
isDraining(): boolean;
jetstream(opts?: JetStreamOptions | JetStreamManagerOptions): JetStreamClient;
async jetstreamManager(opts?: JetStreamManagerOptions): Promise<JetStreamManager>;
publishMessage(msg: Msg);
reconnect(): Promise<void>;
requestMany(
subject: string,
data?: Payload,
opts?: Partial<RequestManyOptions>,
): Promise<QueuedIterator<Msg>>;respondMessage(msg: Msg);
async rtt(): Promise<number>;
stats(): Stats;
status(): AsyncIterable<Status>;
§Implements
§Properties
§
_services: ServicesAPI
[src]§
info: ServerInfo | undefined readonly
[src]§
listeners: QueuedIterator<Status>[]
[src]§
options: ConnectionOptions
[src]§
protocol: ProtocolHandler
[src]§
services: ServicesAPI readonly
[src]§Methods
§
flush(): Promise<void>
[src]Flushes to the server. Promise resolves when round-trip completes.
@return
§
requestMany(subject: string, data?: Payload, opts?: Partial<RequestManyOptions>): Promise<QueuedIterator<Msg>>
[src]§Static Methods
§
connect(opts?: ConnectionOptions): Promise<NatsConnection>
[src]