@reactoo/watchtogether-sdk-js 2.7.44-beta.1 → 2.7.44-beta.2

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.
@@ -16817,6 +16817,7 @@ let iot = function () {
16817
16817
  let keepCurrentTopics = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
16818
16818
  if (!keepCurrentTopics) {
16819
16819
  __currentTopics.clear();
16820
+ _this.__privates.iot.clearTopics();
16820
16821
  }
16821
16822
  interruptCount = 0;
16822
16823
  shouldBeConnected = false;
@@ -25360,6 +25361,9 @@ class Iot {
25360
25361
  isConnected() {
25361
25362
  return this.connection && this.connection.currentState === 0 && this.connection.desiredState === 0;
25362
25363
  }
25364
+ clearTopics() {
25365
+ this.subscribedTopics.clear();
25366
+ }
25363
25367
  subscribe(topic) {
25364
25368
  this.log('iot subscribe', topic);
25365
25369
  if (this.connection && this.connection.currentState === 0 && this.connection.desiredState === 0 && typeof topic === 'string' && topic.trim() !== '') {