@reactoo/watchtogether-sdk-js 2.7.45 → 2.7.46
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/modules/wt-iot.js
CHANGED
|
@@ -113,7 +113,7 @@ class Iot {
|
|
|
113
113
|
return new Promise((resolve, reject) => {
|
|
114
114
|
const timeoutId = setTimeout(() => {
|
|
115
115
|
reject(new Error('Disconnect timeout'));
|
|
116
|
-
},
|
|
116
|
+
}, 5000); // 5 seconds timeout is enough
|
|
117
117
|
this.connection.disconnect()
|
|
118
118
|
.then((r) => {
|
|
119
119
|
clearTimeout(timeoutId);
|