Interface ConnectionStateSnapshot

Snapshot of connection stats

interface ConnectionStateSnapshot {
    activeRequests: string[];
    address: string;
    avgLatency: number;
    connected: boolean;
    disconnects: number;
    ephemeral: boolean;
    events: {
        received: number;
        send: number;
    };
    id: string;
    info?: RelayInfo;
    pendingRequests: string[];
    settings?: RelaySettings;
}

Properties

activeRequests: string[]
address: string
avgLatency: number
connected: boolean
disconnects: number
ephemeral: boolean
events: {
    received: number;
    send: number;
}

Type declaration

  • received: number
  • send: number
id: string
info?: RelayInfo
pendingRequests: string[]
settings?: RelaySettings

Generated using TypeDoc