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

ServiceClient

import type { ServiceClient } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
interface ServiceClient {
info(name?: string, id?: string): Promise<QueuedIterator<ServiceInfo>>;
ping(name?: string, id?: string): Promise<QueuedIterator<ServiceIdentity>>;
stats(name?: string, id?: string): Promise<QueuedIterator<ServiceStats>>;
}

§Methods

§
info(name?: string, id?: string): Promise<QueuedIterator<ServiceInfo>>
[src]

Requests info from services

@param name
@param id
§
ping(name?: string, id?: string): Promise<QueuedIterator<ServiceIdentity>>
[src]

Pings services

@param name
  • optional
@param id
  • optional
§
stats(name?: string, id?: string): Promise<QueuedIterator<ServiceStats>>
[src]

Requests all the stats from services

@param name
@param id