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

ServerInfo

import type { ServerInfo } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";

ServerInfo represents information from the connected server

interface ServerInfo {
auth_required?: boolean;
client_id: number;
client_ip?: string;
cluster?: string;
connect_urls?: string[];
git_commit?: string;
go: string;
headers?: boolean;
host: string;
jetstream?: boolean;
ldm?: boolean;
max_payload: number;
nonce?: string;
port: number;
proto: number;
server_id: string;
server_name: string;
tls_available?: boolean;
tls_required?: boolean;
tls_verify?: boolean;
version: string;
}

§Properties

§
auth_required?: boolean
[src]

True if the server requires authentication

§
client_id: number
[src]

Server-assigned client_id

§
client_ip?: string
[src]

The client's IP as seen by the server

§
cluster?: string
[src]

The name or ID of the cluster

§
connect_urls?: string[]
[src]

Other servers available on the connected cluster

§
git_commit?: string
[src]

Git commit information on the built server binary

§
go: string
[src]

Version information on the Go stack used to build the server binary

§
headers?: boolean
[src]

True if the server supports headers

§
host: string
[src]

Hostname of the connected server

§
jetstream?: boolean
[src]

True if the server supports JetStream

§
ldm?: boolean
[src]

True if the server is in Lame Duck Mode

§
max_payload: number
[src]

Max number of bytes in message that can be sent to the server

§
nonce?: string
[src]

If the server required nkey or JWT authentication the nonce used during authentication.

§
port: number
[src]

The port where the server is listening

§
proto: number
[src]

Version number of the NATS protocol

§
server_id: string
[src]

The ID of the server

§
server_name: string
[src]

The name of the server

§
tls_available?: boolean
[src]

True if TLS is available

§
tls_required?: boolean
[src]

True if TLS connections are required

§
tls_verify?: boolean
[src]

True if TLS client certificate verification is required

§
version: string
[src]

The nats-server version