_close(event) {
    if (this.remainingTries === this.reconnection.maxTries) {
      this.manager.emit("socketClose", event);
    }
    if (event.code !== 1000 && event.reason !== "destroy") {
      if (this.reconnection.auto) this.reconnect();
    }
  }
/**
   * Handles the close of the websocket.
   * @since 1.0.0
   * @private
   */
Handles the close of the websocket.
Handles the close of the websocket .
_close(event) {
    if (this.remainingTries === this.reconnection.maxTries) {
      this.manager.emit("socketClose", event);
    }
    if (event.code !== 1000 && event.reason !== "destroy") {
      if (this.reconnection.auto) this.reconnect();
    }
  }
_close ( event ) { if ( this . remainingTries === this . reconnection . maxTries ) { this . manager . emit ( "socketClose" , event ) ; } if ( event . code !== 1000 && event . reason !== "destroy" ) { if ( this . reconnection . auto ) this . reconnect ( ) ; } }
Handles the close of the websocket.
Handles the close of the websocket .