@reactoo/watchtogether-sdk-js 2.7.63 → 2.7.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.7.63",
3
+ "version": "2.7.64",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
package/src/models/iot.js CHANGED
@@ -187,8 +187,9 @@ let iot = function () {
187
187
  .then(() => this.__privates.iot.subscribe(topic))
188
188
  .catch((error) => {
189
189
 
190
+ __currentTopics.delete(topic);
191
+
190
192
  if(error?.cause === -1) {
191
- __currentTopics.delete(topic);
192
193
  return Promise.reject('invalid_topic');
193
194
  }
194
195