@squidcloud/client 1.0.104 → 1.0.105
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/cjs/index.js +3 -1
- package/dist/esm/index.js +3 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -29947,7 +29947,9 @@ function createWebSocketWrapper(url, opts = {}) {
|
|
|
29947
29947
|
const $ = {
|
|
29948
29948
|
connected: false,
|
|
29949
29949
|
open() {
|
|
29950
|
-
|
|
29950
|
+
var _a;
|
|
29951
|
+
const wsConstructor = (_a = WebSocketClass === null || WebSocketClass === void 0 ? void 0 : WebSocketClass['WebSocket']) !== null && _a !== void 0 ? _a : WebSocketClass;
|
|
29952
|
+
ws = new wsConstructor(url, opts.protocols || []);
|
|
29951
29953
|
ws.onmessage = opts.onmessage || noop;
|
|
29952
29954
|
ws.onopen = function (e) {
|
|
29953
29955
|
$.connected = true;
|
package/dist/esm/index.js
CHANGED
|
@@ -29862,7 +29862,9 @@ function createWebSocketWrapper(url, opts = {}) {
|
|
|
29862
29862
|
const $ = {
|
|
29863
29863
|
connected: false,
|
|
29864
29864
|
open() {
|
|
29865
|
-
|
|
29865
|
+
var _a;
|
|
29866
|
+
const wsConstructor = (_a = WebSocketClass === null || WebSocketClass === void 0 ? void 0 : WebSocketClass['WebSocket']) !== null && _a !== void 0 ? _a : WebSocketClass;
|
|
29867
|
+
ws = new wsConstructor(url, opts.protocols || []);
|
|
29866
29868
|
ws.onmessage = opts.onmessage || noop;
|
|
29867
29869
|
ws.onopen = function (e) {
|
|
29868
29870
|
$.connected = true;
|