@realsee/live 0.6.8-dev.3 → 0.6.8-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -746,7 +746,7 @@ class mr extends ue {
746
746
  const i = () => {
747
747
  this._connectTimeout = void 0, this._detachConnectivityEvents(), this.emit(
748
748
  "timeout",
749
- new CustomEvent("connecting", {
749
+ new CustomEvent("timeout", {
750
750
  detail: {
751
751
  attempts: this._attempts,
752
752
  reconnects: this._reconnects
@@ -849,7 +849,7 @@ class mr extends ue {
849
849
  this._attempts = 0;
850
850
  return;
851
851
  }
852
- if (((c = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : c.onLine) === !1) {
852
+ if (this._connectivityEventsAttached && ((c = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : c.onLine) === !1) {
853
853
  this._reconnectWhenOnlineAgain = !0;
854
854
  return;
855
855
  }
@@ -865,7 +865,7 @@ class vr extends ue {
865
865
  */
866
866
  o(this, "_ws", new mr({
867
867
  url: "",
868
- robustOptions: { timeout: 1e4, should1000Reconnect: !0 }
868
+ robustOptions: { should1000Reconnect: !0, ignoreConnectivityEvents: !0 }
869
869
  }));
870
870
  /**
871
871
  * 带看连接状态