@reactoo/watchtogether-sdk-js 2.8.50 → 2.8.52
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.
|
@@ -44936,9 +44936,8 @@ let iot = function () {
|
|
|
44936
44936
|
this.__privates.iot.log('MQTT client connection_success');
|
|
44937
44937
|
},
|
|
44938
44938
|
onConnectionFailure: (data, connectionId) => {
|
|
44939
|
-
//
|
|
44940
|
-
//
|
|
44941
|
-
// so the second one will trigger updateCredentials again which is what we want
|
|
44939
|
+
// not having !isConnecting here because isConnecting flips to false after this event so we wouldn't retry connection
|
|
44940
|
+
// to stop retrying connection user needs to call iotLogout which sets shouldBeConnected to false
|
|
44942
44941
|
|
|
44943
44942
|
if (shouldBeConnected) {
|
|
44944
44943
|
this.__privates.iot.log('Retrying connection...');
|
|
@@ -45084,6 +45083,7 @@ let iot = function () {
|
|
|
45084
45083
|
return Promise.resolve();
|
|
45085
45084
|
}
|
|
45086
45085
|
this.__privates.iot.log('Connection check failed:', error);
|
|
45086
|
+
this.iot.$emit('iotConnectionLost');
|
|
45087
45087
|
return this.iot.__updateCredentials();
|
|
45088
45088
|
});
|
|
45089
45089
|
},
|