send(data, prioritized = false) {
        if (this.connected) {
            let _i = 0, _w = 1;
            const func = ()=>{
                if (++_i < _w) {
                    return;
                }
                const encoded = _classPrivateFieldGet(this, _serialization1).encode(data);
                _classPrivateFieldGet(this, _ws6).send(encoded);
            };
            if (data.op === _utils.GatewayOp.PRESENCE_UPDATE) {
                ++_w;
                _classPrivateFieldGet(this, _presenceBucket).queue(func, prioritized);
            }
            return _classPrivateFieldGet(this, _bucket).queue(func, prioritized);
        }
        _classPrivateFieldGet(this, _queue)[prioritized ? "unshift" : "push"](data);
    }
/**
     * Send a new packet to the discord gateway.
     * @param {DiscordPacket} data The packet to send.
     * @param {boolean} [prioritized=false] Whether to prioritize this packet.
     */
Send a new packet to the discord gateway.
@param {DiscordPacket} data The packet to send.
@param {boolean} [prioritized=false] Whether to prioritize this packet.
Send a new packet to the discord gateway . @param { DiscordPacket } data The packet to send . @param { boolean } [ prioritized = false ] Whether to prioritize this packet .
send(data, prioritized = false) {
        if (this.connected) {
            let _i = 0, _w = 1;
            const func = ()=>{
                if (++_i < _w) {
                    return;
                }
                const encoded = _classPrivateFieldGet(this, _serialization1).encode(data);
                _classPrivateFieldGet(this, _ws6).send(encoded);
            };
            if (data.op === _utils.GatewayOp.PRESENCE_UPDATE) {
                ++_w;
                _classPrivateFieldGet(this, _presenceBucket).queue(func, prioritized);
            }
            return _classPrivateFieldGet(this, _bucket).queue(func, prioritized);
        }
        _classPrivateFieldGet(this, _queue)[prioritized ? "unshift" : "push"](data);
    }
send ( data , prioritized = false ) { if ( this . connected ) { let _i = 0 , _w = 1 ; const func = ( ) => { if ( ++ _i < _w ) { return ; } const encoded = _classPrivateFieldGet ( this , _serialization1 ) . encode ( data ) ; _classPrivateFieldGet ( this , _ws6 ) . send ( encoded ) ; } ; if ( data . op === _utils . GatewayOp . PRESENCE_UPDATE ) { ++ _w ; _classPrivateFieldGet ( this , _presenceBucket ) . queue ( func , prioritized ) ; } return _classPrivateFieldGet ( this , _bucket ) . queue ( func , prioritized ) ; } _classPrivateFieldGet ( this , _queue ) [ prioritized ? "unshift" : "push" ] ( data ) ; }
Send a new packet to the discord gateway.
Send a new packet to the discord gateway .