homey-api 3.4.8 → 3.4.10
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.
|
@@ -580,7 +580,7 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
580
580
|
this.__debug('subscribed', uri);
|
|
581
581
|
return resolve();
|
|
582
582
|
});
|
|
583
|
-
}),
|
|
583
|
+
}), 10000, `Failed to subscribe to ${uri} (Timeout after 10000ms).`);
|
|
584
584
|
|
|
585
585
|
// On Connect
|
|
586
586
|
const __onEvent = (event, data) => {
|
|
@@ -614,7 +614,7 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
614
614
|
this.__debug('subscribed', uri);
|
|
615
615
|
return resolve();
|
|
616
616
|
});
|
|
617
|
-
}),
|
|
617
|
+
}), 10000, `Failed to subscribe to ${uri} (Timeout after 10000ms).`);
|
|
618
618
|
|
|
619
619
|
this.__homeySocket.on(uri, __onEvent);
|
|
620
620
|
|