@reactoo/watchtogether-sdk-js 2.7.44-beta.4 → 2.7.44-beta.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.
package/package.json
CHANGED
package/src/models/iot.js
CHANGED
|
@@ -221,6 +221,11 @@ let iot = function () {
|
|
|
221
221
|
checkConnection: () => {
|
|
222
222
|
return this.__privates.iot.checkConnection()
|
|
223
223
|
.catch(error => {
|
|
224
|
+
|
|
225
|
+
if(error?.cause === -1) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
|
|
224
229
|
if(!shouldBeConnected) {
|
|
225
230
|
this.__privates.iot.log('Ignoring connection check failure, not connected');
|
|
226
231
|
return Promise.resolve();
|
|
@@ -231,6 +236,9 @@ let iot = function () {
|
|
|
231
236
|
},
|
|
232
237
|
|
|
233
238
|
setupKeepAliveInterval: () => {
|
|
239
|
+
|
|
240
|
+
this.__privates.iot.log('Setting up keepalive interval');
|
|
241
|
+
|
|
234
242
|
clearInterval(keepAliveIntervalId);
|
|
235
243
|
keepAliveIntervalId = setInterval(() => {
|
|
236
244
|
this.__privates.iot.checkConnection()
|