_checkConnect(delay, factor, depth = 1) {
    if (navigator.onLine === false) return;
    if (!delay) delay = this.retryMs;
    if (!factor) factor = this.retryFactor;
    log("trace", "Uib:checkConnect", "Checking connection.\nConnected: ".concat(this._socket.connected, ".\nTimer: ").concat(__privateGet(this, _timerid), ". Depth: ").concat(depth, ". Delay: ").concat(delay, ". Factor: ").concat(factor, ".\nTransport: ").concat(this.currentTransport), this._socket)();
    if (this._socket.connected === true) {
      if (__privateGet(this, _timerid)) {
        window.clearTimeout(__privateGet(this, _timerid));
        __privateSet(this, _timerid, null);
      }
      this.set("ioConnected", true);
      this.set("socketError", null);
      return true;
    }
    this.set("ioConnected", false);
    if (__privateGet(this, _timerid)) window.clearTimeout(__privateGet(this, _timerid));
    __privateSet(this, _timerid, window.setTimeout(() => {
      log("warn", "Uib:checkConnect:setTimeout", "Socket.IO reconnection attempt. Current delay: ".concat(delay, ". Depth: ").concat(depth))();
      this._socket.disconnect();
      this._socket.connect();
      __privateSet(this, _timerid, null);
      this._checkConnect(delay * factor, factor, depth++);
    }, delay));
    return false;
  }
Function used to check whether Socket.IO is connected to the server, reconnect if not (recursive)
@param {number} [delay] Initial delay before checking (ms). Default=2000ms
@param {number} [factor] Multiplication factor for subsequent checks (delay*factor). Default=1.5
@param {number} [depth] Recursion depth
@returns {boolean|undefined} Whether or not Socket.IO is connected to uibuilder in Node-RED
@private