@mml-io/mml-web-client 0.0.0-experimental-1e22a49-20250311 → 0.0.0-experimental-2f07d9b-20250417
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/build/index.js +4 -2
- package/build/index.js.map +2 -2
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -909,7 +909,8 @@
|
|
|
909
909
|
handleEvent(element, event) {
|
|
910
910
|
const nodeId = this.elementToId.get(element);
|
|
911
911
|
if (nodeId === void 0 || nodeId === null) {
|
|
912
|
-
|
|
912
|
+
console.error("Element not found for event", { nodeId, element, event });
|
|
913
|
+
return;
|
|
913
914
|
}
|
|
914
915
|
const detailWithoutElement = {
|
|
915
916
|
...event.detail
|
|
@@ -1330,10 +1331,11 @@
|
|
|
1330
1331
|
}
|
|
1331
1332
|
createWebsocketWithTimeout(timeout) {
|
|
1332
1333
|
return new Promise((resolve, reject) => {
|
|
1334
|
+
const websocket = this.websocketFactory(this.url);
|
|
1333
1335
|
const timeoutId = setTimeout(() => {
|
|
1334
1336
|
reject(new Error("websocket connection timed out"));
|
|
1337
|
+
websocket.close();
|
|
1335
1338
|
}, timeout);
|
|
1336
|
-
const websocket = this.websocketFactory(this.url);
|
|
1337
1339
|
websocket.binaryType = "arraybuffer";
|
|
1338
1340
|
websocket.addEventListener("open", () => {
|
|
1339
1341
|
clearTimeout(timeoutId);
|