_close(evt) {
        var ref;
        const reason = (ref = evt.reason || _utils.GatewayCloseCode[evt.code]) !== null && ref !== void 0 ? ref : "unknown";
        this._debug(`Closed; Code = ${evt.code}, Clean? = ${evt.wasClean}, Reason = ${reason}`);
        if (_classPrivateFieldGet(this, _seq) !== -1) {
            _classPrivateFieldSet(this, _closingSeq, _classPrivateFieldGet(this, _seq));
        }
        _classPrivateFieldSet(this, _seq, -1);
        this.heartbeat.reset();
        this.session.clearHelloTimeout();
        if (_classPrivateFieldGet(this, _ws6)) {
            this._cleanupConnection();
        }
        this.status = _utils.Status.DISCONNECTED;
        /**
         * Emitted whenever the shard's websocket closes.
         * @event Shard#close
         * @param {WebSocket.CloseEvent} event The received event
         */ this.emit(_utils.ShardEvent.CLOSE, evt);
    }
/**
     * Called whenever the websocket closes.
     * @param {WebSocket.CloseEvent} evt
     * @private
     */
Called whenever the websocket closes.
Called whenever the websocket closes .
_close(evt) {
        var ref;
        const reason = (ref = evt.reason || _utils.GatewayCloseCode[evt.code]) !== null && ref !== void 0 ? ref : "unknown";
        this._debug(`Closed; Code = ${evt.code}, Clean? = ${evt.wasClean}, Reason = ${reason}`);
        if (_classPrivateFieldGet(this, _seq) !== -1) {
            _classPrivateFieldSet(this, _closingSeq, _classPrivateFieldGet(this, _seq));
        }
        _classPrivateFieldSet(this, _seq, -1);
        this.heartbeat.reset();
        this.session.clearHelloTimeout();
        if (_classPrivateFieldGet(this, _ws6)) {
            this._cleanupConnection();
        }
        this.status = _utils.Status.DISCONNECTED;
         this.emit(_utils.ShardEvent.CLOSE, evt);
    }
_close ( evt ) { var ref ; const reason = ( ref = evt . reason || _utils . GatewayCloseCode [ evt . code ] ) !== null && ref !== void 0 ? ref : "unknown" ; this . _debug ( ` ${ evt . code } ${ evt . wasClean } ${ reason } ` ) ; if ( _classPrivateFieldGet ( this , _seq ) !== - 1 ) { _classPrivateFieldSet ( this , _closingSeq , _classPrivateFieldGet ( this , _seq ) ) ; } _classPrivateFieldSet ( this , _seq , - 1 ) ; this . heartbeat . reset ( ) ; this . session . clearHelloTimeout ( ) ; if ( _classPrivateFieldGet ( this , _ws6 ) ) { this . _cleanupConnection ( ) ; } this . status = _utils . Status . DISCONNECTED ; this . emit ( _utils . ShardEvent . CLOSE , evt ) ; }
Called whenever the websocket closes.
Called whenever the websocket closes .
/**
         * Emitted whenever the shard's websocket closes.
         * @event Shard#close
         * @param {WebSocket.CloseEvent} event The received event
         */