terminate() {
        if (this.readyState === $bb7af8e8d7184be0$var$WebSocket.CLOSED) return;
        if (this.readyState === $bb7af8e8d7184be0$var$WebSocket.CONNECTING) {
            const msg = 'WebSocket was closed before the connection was established';
            return $bb7af8e8d7184be0$var$abortHandshake(this, this._req, msg);
        }
        if (this._socket) {
            this._readyState = $bb7af8e8d7184be0$var$WebSocket.CLOSING;
            this._socket.destroy();
        }
    }
/**
   * Forcibly close the connection.
   *
   * @public
   */
Forcibly close the connection.
@public
Forcibly close the connection . @public
terminate() {
        if (this.readyState === $bb7af8e8d7184be0$var$WebSocket.CLOSED) return;
        if (this.readyState === $bb7af8e8d7184be0$var$WebSocket.CONNECTING) {
            const msg = 'WebSocket was closed before the connection was established';
            return $bb7af8e8d7184be0$var$abortHandshake(this, this._req, msg);
        }
        if (this._socket) {
            this._readyState = $bb7af8e8d7184be0$var$WebSocket.CLOSING;
            this._socket.destroy();
        }
    }
terminate ( ) { if ( this . readyState === $bb7af8e8d7184be0$var$WebSocket . CLOSED ) return ; if ( this . readyState === $bb7af8e8d7184be0$var$WebSocket . CONNECTING ) { const msg = 'WebSocket was closed before the connection was established' ; return $bb7af8e8d7184be0$var$abortHandshake ( this , this . _req , msg ) ; } if ( this . _socket ) { this . _readyState = $bb7af8e8d7184be0$var$WebSocket . CLOSING ; this . _socket . destroy ( ) ; } }
Forcibly close the connection.
Forcibly close the connection .