@reactoo/watchtogether-sdk-js 2.7.38-beta.4 → 2.7.38

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.
@@ -16744,11 +16744,9 @@ let iot = function () {
16744
16744
  }
16745
16745
  },
16746
16746
  onError: () => {
16747
- console.log('MQTT client error');
16748
16747
  this.__privates.iot.log('MQTT client error');
16749
16748
  },
16750
16749
  onDisconnect: () => {
16751
- console.log('MQTT client disconnect');
16752
16750
  this.__privates.iot.log('MQTT client disconnect');
16753
16751
  },
16754
16752
  onInterrupt: () => {
@@ -16756,19 +16754,15 @@ let iot = function () {
16756
16754
  this.iot.__updateCredentials();
16757
16755
  }
16758
16756
  interruptCount++;
16759
- console.log('MQTT client interrupt');
16760
16757
  this.__privates.iot.log('MQTT client interrupt');
16761
16758
  },
16762
16759
  onResume: () => {
16763
- console.log('MQTT client resume');
16764
16760
  this.__privates.iot.log('MQTT client resume');
16765
16761
  },
16766
16762
  onConnectionSuccess: () => {
16767
- console.log('MQTT client connection_success');
16768
16763
  this.__privates.iot.log('MQTT client connection_success');
16769
16764
  },
16770
16765
  onConnectionFailure: () => {
16771
- console.log('MQTT client connection_failure');
16772
16766
  this.__privates.iot.log('MQTT client connection_failure');
16773
16767
  },
16774
16768
  iotLogin: function () {
@@ -25546,7 +25540,11 @@ class Iot {
25546
25540
  type: 'keep_alive',
25547
25541
  timestamp: Date.now()
25548
25542
  };
25549
- this.send(suitableTopic, testMessage);
25543
+ try {
25544
+ this.send(suitableTopic, testMessage);
25545
+ } catch (error) {
25546
+ this.log(`Keep-alive error: ${error.message}`);
25547
+ }
25550
25548
  }
25551
25549
  }
25552
25550
  /* harmony default export */ __webpack_exports__["default"] = (Iot);