quickvo-sdk-js 0.7.6 → 0.7.7

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.
@@ -15,6 +15,7 @@ export declare const enum_eventName: {
15
15
  readonly debugger: "调试";
16
16
  readonly pubNotify: "webrtc发布状态正常";
17
17
  readonly heartbeat: "心跳";
18
+ readonly shutdown: "清除缓存";
18
19
  };
19
20
  export type T_eventName = typeof enum_eventName;
20
21
  export type K_eventName = keyof T_eventName;
@@ -24,4 +25,4 @@ export declare const eventName_options: {
24
25
  label: any;
25
26
  }[];
26
27
  export declare const eventName_keys: (keyof typeof enum_eventName)[];
27
- export declare const eventName_vals: ("更新网络状态" | "更新通话状态" | "同步房间" | "关闭轨道" | "协商流" | "订阅流" | "发布流" | "连接CF" | "退出房间" | "退出房间不断开连接" | "加入房间" | "加入房间(提前建连)" | "登录" | "调试" | "webrtc发布状态正常" | "心跳")[];
28
+ export declare const eventName_vals: ("更新网络状态" | "更新通话状态" | "同步房间" | "关闭轨道" | "协商流" | "订阅流" | "发布流" | "连接CF" | "退出房间" | "退出房间不断开连接" | "加入房间" | "加入房间(提前建连)" | "登录" | "调试" | "webrtc发布状态正常" | "心跳" | "清除缓存")[];
package/dist/index.js CHANGED
@@ -8436,7 +8436,9 @@ class RoomPeer extends RoomUsers {
8436
8436
  k.length === e.length && n();
8437
8437
  }
8438
8438
  };
8439
- this.peerIns.addEventListener("track", O), E = setTimeout(() => n(), 5 * 1e3);
8439
+ this.peerIns.addEventListener("track", O), E = setTimeout(() => {
8440
+ this.reportLogs("subscribe_error", `incomplete subscription. (${e.length}/${k.length})`), n();
8441
+ }, 5 * 1e3);
8440
8442
  }
8441
8443
  });
8442
8444
  });
@@ -9150,6 +9152,17 @@ class RoomCalls extends RoomPeer {
9150
9152
  E(_);
9151
9153
  });
9152
9154
  }));
9155
+ /**
9156
+ * 清除缓存
9157
+ */
9158
+ Z(this, "shutdown", () => new Promise(async (a, E) => {
9159
+ await this.cwsIns.sendMessage({ event: "shutdown" }, !1).then(async (_) => {
9160
+ if (_.code !== 200) return E(_.desc);
9161
+ a(!0);
9162
+ }).catch((_) => {
9163
+ E(_);
9164
+ });
9165
+ }));
9153
9166
  }
9154
9167
  }
9155
9168
  Xt = new WeakMap(), xt = new WeakMap(), qt = new WeakMap(), Dt = new WeakMap(), Ct = new WeakMap();