@reactoo/watchtogether-sdk-js 2.7.67 → 2.7.69
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
package/src/models/iot.js
CHANGED
|
@@ -158,7 +158,6 @@ let iot = function () {
|
|
|
158
158
|
if(!keepCurrentTopics) {
|
|
159
159
|
__currentTopics.clear();
|
|
160
160
|
this.__privates.iot.clearTopics();
|
|
161
|
-
this.__privates.iot.terminateWorker();
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
interruptCount = 0;
|
|
@@ -170,6 +169,7 @@ let iot = function () {
|
|
|
170
169
|
|
|
171
170
|
return this.__privates.iot.disconnect()
|
|
172
171
|
.finally(() => {
|
|
172
|
+
this.__privates.iot.terminateWorker();
|
|
173
173
|
this.iot.$off('connect', this.iot.onConnect, this);
|
|
174
174
|
this.iot.$off('closed', this.iot.onClosed, this);
|
|
175
175
|
this.iot.$off('error', this.iot.onError, this);
|
package/src/modules/wt-iot2.js
CHANGED
|
@@ -12,7 +12,6 @@ class Iot {
|
|
|
12
12
|
this.lastConnectParams = null;
|
|
13
13
|
this.subscribedTopics = new Set();
|
|
14
14
|
this.abortController = null;
|
|
15
|
-
this.initWorker();
|
|
16
15
|
|
|
17
16
|
if (enableDebugFlag) {
|
|
18
17
|
this.enableDebug();
|
|
@@ -46,6 +45,7 @@ class Iot {
|
|
|
46
45
|
.then(() => {
|
|
47
46
|
this.log('iot connect');
|
|
48
47
|
this.abortController = new AbortController();
|
|
48
|
+
this.initWorker();
|
|
49
49
|
this.startCredentialsExpirationCheck(expiration);
|
|
50
50
|
this.lastConnectParams = { apiMqttUrl, apiMqttClientId, region, accessKeyId, secretAccessKey, sessionToken, expiration };
|
|
51
51
|
|