_open() {
        var ref;
        this.status = _utils.Status.HANDSHAKING;
        this._debug(`Connected. ${(ref = _classPrivateFieldGet(this, _ws6)) === null || ref === void 0 ? void 0 : ref.url} in ${Date.now() - this.connectedAt}`);
        if (_classPrivateFieldGet(this, _queue).length) {
            this._debug(`${_classPrivateFieldGet(this, _queue).length} packets waiting... sending all now.`);
            while(_classPrivateFieldGet(this, _queue).length){
                const pk = _classPrivateFieldGet(this, _queue).shift();
                if (!pk) {
                    break;
                }
                this.send(pk);
            }
        }
    }
/**
     * Called whenever the websocket opens.
     * @private
     */
Called whenever the websocket opens.
@private
Called whenever the websocket opens . @private
_open() {
        var ref;
        this.status = _utils.Status.HANDSHAKING;
        this._debug(`Connected. ${(ref = _classPrivateFieldGet(this, _ws6)) === null || ref === void 0 ? void 0 : ref.url} in ${Date.now() - this.connectedAt}`);
        if (_classPrivateFieldGet(this, _queue).length) {
            this._debug(`${_classPrivateFieldGet(this, _queue).length} packets waiting... sending all now.`);
            while(_classPrivateFieldGet(this, _queue).length){
                const pk = _classPrivateFieldGet(this, _queue).shift();
                if (!pk) {
                    break;
                }
                this.send(pk);
            }
        }
    }
_open ( ) { var ref ; this . status = _utils . Status . HANDSHAKING ; this . _debug ( ` ${ ( ref = _classPrivateFieldGet ( this , _ws6 ) ) === null || ref === void 0 ? void 0 : ref . url } ${ Date . now ( ) - this . connectedAt } ` ) ; if ( _classPrivateFieldGet ( this , _queue ) . length ) { this . _debug ( ` ${ _classPrivateFieldGet ( this , _queue ) . length } ` ) ; while ( _classPrivateFieldGet ( this , _queue ) . length ) { const pk = _classPrivateFieldGet ( this , _queue ) . shift ( ) ; if ( ! pk ) { break ; } this . send ( pk ) ; } } }
Called whenever the websocket opens.
Called whenever the websocket opens .