@polyguard/sdk 1.0.3 → 1.0.4
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/dist/sdk.js
CHANGED
|
@@ -11096,8 +11096,8 @@
|
|
|
11096
11096
|
showError(`Unknown message type from server`);
|
|
11097
11097
|
}
|
|
11098
11098
|
} catch (e) {
|
|
11099
|
+
console.error("Invalid message format from server", e);
|
|
11099
11100
|
showError("Invalid message format from server");
|
|
11100
|
-
ws.close();
|
|
11101
11101
|
}
|
|
11102
11102
|
});
|
|
11103
11103
|
ws.addEventListener("error", () => {
|
package/package.json
CHANGED
|
@@ -168,8 +168,9 @@ export class PolyguardWebsocketClientImpl {
|
|
|
168
168
|
showError(`Unknown message type from server`);
|
|
169
169
|
}
|
|
170
170
|
} catch (e) {
|
|
171
|
+
console.error('Invalid message format from server', e);
|
|
171
172
|
showError('Invalid message format from server');
|
|
172
|
-
ws.close();
|
|
173
|
+
// ws.close();
|
|
173
174
|
}
|
|
174
175
|
});
|
|
175
176
|
ws.addEventListener('error', () => {
|