public/script/control_connection.js
// dispatched, and reconnection attempts will start after a brief delay.
dispatched, and reconnection attempts will start after a brief delay.
dispatched and reconnection attempts will start after a brief delay .
onClose() {
        if (this.#state === ControlConnection.STATE_DISCONNECTED)
            return;
        if (this.#state === ControlConnection.STATE_CONNECTED)
            this.dispatchEvent(new CustomEvent('disconnect'));
        this.#state = ControlConnection.STATE_DISCONNECTED;
        setTimeout(ControlConnection.prototype.connect.bind(this), kReconnectionTimeoutMs);
    }
onClose ( ) { if ( this . #state === ControlConnection . STATE_DISCONNECTED ) return ; if ( this . #state === ControlConnection . STATE_CONNECTED ) this . dispatchEvent ( new CustomEvent ( 'disconnect' ) ) ; this . #state = ControlConnection . STATE_DISCONNECTED ; setTimeout ( ControlConnection . prototype . connect . bind ( this ) , kReconnectionTimeoutMs ) ; }
dispatched, and reconnection attempts will start after a brief delay.
dispatched and reconnection attempts will start after a brief delay .
// Automatically attempt to reconnect to the hub after a defined number of milliseconds.