_onConnect() {
    this.currentTransport = this._socket.io.engine.transport.name;
    log(
      "info",
      "Uib:ioSetup",
      "\u2705 SOCKET CONNECTED.\nConnection count: ".concat(this.connectedNum, ", Is a Recovery?: ").concat(this._socket.recovered, ".\nNamespace: ").concat(this.ioNamespace, "\nTransport: ").concat(this.currentTransport)
    )();
    this._dispatchCustomEvent("uibuilder:socket:connected", { numConnections: this.connectedNum, isRecovery: this._socket.recovered });
    this._socket.io.engine.on("upgrade", () => {
      this.currentTransport = this._socket.io.engine.transport.name;
      log(
        "trace",
        "Uib:_onConnect:onUpgrade",
        "SOCKET CONNECTION UPGRADED.\nConnection count: ".concat(this.connectedNum, ", Is a Recovery?: ").concat(this._socket.recovered, ".\nNamespace: ").concat(this.ioNamespace, "\nTransport: ").concat(this.currentTransport)
      )();
    });
    setTimeout(() => {
      if (this.currentTransport !== "websocket") {
        log(
          "error",
          "Uib:Connection",
          "Connected to Node-RED but NO SOCKET UPGRADE!\n\u27A1\uFE0F CHECK NETWORK and any PROXIES for issues. \u2B05\uFE0F\nConnection count: ".concat(this.connectedNum, ", Is a Recovery?: ").concat(this._socket.recovered, ".\nNamespace: ").concat(this.ioNamespace, "\nTransport: ").concat(this.currentTransport)
        )();
      }
    }, 2e3);
    this._checkConnect();
  }
Called by _ioSetup when Socket.IO connects to Node-RED
@private