Interface NDKRelayConnectionStats

interface NDKRelayConnectionStats {
    attempts: number;
    connectedAt?: number;
    durations: number[];
    nextReconnectAt?: number;
    success: number;
    validationRatio?: number;
}

Properties

attempts: number

The number of times a connection has been attempted.

connectedAt?: number

The time the current connection was established in milliseconds.

durations: number[]

The durations of the last 100 connections in milliseconds.

nextReconnectAt?: number

Timestamp of the next reconnection attempt.

success: number

The number of times a connection has been successfully established.

validationRatio?: number

Signature validation ratio for this relay.

NDKRelayOptions.validationRatio