onreconnect() {
        const attempt = this.backoff.attempts;
        this._reconnecting = false;
        this.backoff.reset();
        super.emit("reconnect", attempt);
    }
/**
     * Called upon successful reconnect.
     *
     * @private
     */
Called upon successful reconnect.
@private
Called upon successful reconnect . @private
onreconnect() {
        const attempt = this.backoff.attempts;
        this._reconnecting = false;
        this.backoff.reset();
        super.emit("reconnect", attempt);
    }
onreconnect ( ) { const attempt = this . backoff . attempts ; this . _reconnecting = false ; this . backoff . reset ( ) ; super . emit ( "reconnect" , attempt ) ; }
Called upon successful reconnect.
Called upon successful reconnect .