async _open() {
    await this._processQueue().then(() => this.configureResuming()).catch((e) =>
      this.manager.emit("socketError", this, e)
    );
    this.manager.emit("socketReady", this);
    this.status = Status.CONNECTED;
    for await (const data of this.ws) {
      if (isWebSocketCloseEvent(data)) return this._close(data);
      if (isWebSocketPingEvent(data)) return;
      if (isWebSocketPongEvent(data)) return;
      await this._message(data);
    }
  }
/**
   * Handles the opening of the websocket.
   * @private
   */
Handles the opening of the websocket.
@private
Handles the opening of the websocket . @private
async _open() {
    await this._processQueue().then(() => this.configureResuming()).catch((e) =>
      this.manager.emit("socketError", this, e)
    );
    this.manager.emit("socketReady", this);
    this.status = Status.CONNECTED;
    for await (const data of this.ws) {
      if (isWebSocketCloseEvent(data)) return this._close(data);
      if (isWebSocketPingEvent(data)) return;
      if (isWebSocketPongEvent(data)) return;
      await this._message(data);
    }
  }
async _open ( ) { await this . _processQueue ( ) . then ( ( ) => this . configureResuming ( ) ) . catch ( ( e ) => this . manager . emit ( "socketError" , this , e ) ) ; this . manager . emit ( "socketReady" , this ) ; this . status = Status . CONNECTED ; for await ( const data of this . ws ) { if ( isWebSocketCloseEvent ( data ) ) return this . _close ( data ) ; if ( isWebSocketPingEvent ( data ) ) return ; if ( isWebSocketPongEvent ( data ) ) return ; await this . _message ( data ) ; } }
Handles the opening of the websocket.
Handles the opening of the websocket .