Interface GobanSocketOptions

interface GobanSocketOptions {
    background_pinging?: boolean;
    dont_ping?: boolean;
    ignore_pongs_before?: number;
    ping_interval?: number;
    quiet?: boolean;
    timeout_delay?: number;
}

Properties

background_pinging?: boolean

When true, pings are still sent (letting the browser throttle naturally) but no timeout timers are armed and pong responses are silently ignored (no latency/drift updates, no timeout signals). Used when the tab is in the background so we keep the connection alive through intermediaries without reacting to unreliable timing measurements.

dont_ping?: boolean

Don't automatically send pings

ignore_pongs_before?: number

Timestamp (ms since epoch). Pong responses whose originating ping was sent before this time are silently discarded. Set to Date.now() when transitioning from background to foreground so that stale in-flight pongs from the background period don't pollute latency measurements.

ping_interval?: number
quiet?: boolean

Don't log connection/disconnect things

timeout_delay?: number