@realsee/live 0.5.2-dev.3 → 0.5.2-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.
@@ -360,6 +360,7 @@
360
360
  this._trtc.stream = null;
361
361
  }
362
362
  (_b = this._trtc.client) === null || _b === void 0 ? void 0 : _b.leave().then(() => (this._trtc.client = null)).then(() => resolve(true)).catch(() => resolve(false));
363
+ resolve(true);
363
364
  }));
364
365
  }
365
366
  detectMicro() {
@@ -49592,6 +49593,9 @@
49592
49593
  }
49593
49594
 
49594
49595
  class RobustWebSocket$1 extends Subscribe {
49596
+ get attempts() {
49597
+ return this._attempts;
49598
+ }
49595
49599
  constructor(options) {
49596
49600
  super();
49597
49601
  this._options = {
@@ -49739,9 +49743,6 @@
49739
49743
  this.setOptions(options);
49740
49744
  }
49741
49745
  }
49742
- get attempts() {
49743
- return this._attempts;
49744
- }
49745
49746
  setOptions(options) {
49746
49747
  if (!options)
49747
49748
  return;
@@ -49778,6 +49779,9 @@
49778
49779
  }
49779
49780
 
49780
49781
  class HybridBridge {
49782
+ get isReady() {
49783
+ return this._readyState === 'open';
49784
+ }
49781
49785
  constructor() {
49782
49786
  var _a, _b;
49783
49787
  this._rsWeappBridgeMethodAdapter = {};
@@ -49960,9 +49964,6 @@
49960
49964
  this.initBuiltInHandlers();
49961
49965
  }
49962
49966
  }
49963
- get isReady() {
49964
- return this._readyState === 'open';
49965
- }
49966
49967
  _registerBridgeRequestHandler() {
49967
49968
  this._ws.on('message', (event) => __awaiter(this, void 0, void 0, function* () {
49968
49969
  const request = this._parseMessage(event);
@@ -51715,6 +51716,8 @@
51715
51716
  this.exit = () => __awaiter$10(this, void 0, void 0, function* () {
51716
51717
  var _l;
51717
51718
  this._clearLiveData();
51719
+ if (this.state !== exports.LiveState.OPEN)
51720
+ return true;
51718
51721
  try {
51719
51722
  /** 退出强制关闭语音 */
51720
51723
  (_l = this.$RTC) === null || _l === void 0 ? void 0 : _l.quit();