Interface PingPong

[[PingPong]] sends ping-pongs across the signaling connection via the [[SignalingClient]]. It measures the round-trip time between the client ping and server pong and acts as a heartbeat to keep the underlying WebSocket connection alive.

interface PingPong {
    addObserver(observer: PingPongObserver): void;
    forEachObserver(observerFunc: (observer: PingPongObserver) => void): void;
    removeObserver(observer: PingPongObserver): void;
    start(): void;
    stop(): void;
}

Implemented by

Methods