@vuu-ui/vuu-data-remote 0.8.24-debug → 0.8.25-debug
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/cjs/index.js +1 -4
- package/cjs/index.js.map +2 -2
- package/esm/index.js +1 -4
- package/esm/index.js.map +2 -2
- package/package.json +7 -7
- package/types/inlined-worker.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -2342,8 +2342,6 @@ var ServerProxy = class {
|
|
|
2342
2342
|
var { debug: debug4, debugEnabled: debugEnabled4, error: error3, info: info3, infoEnabled: infoEnabled3, warn: warn3 } = logger(
|
|
2343
2343
|
"websocket-connection"
|
|
2344
2344
|
);
|
|
2345
|
-
var WS = "ws";
|
|
2346
|
-
var isWebsocketUrl = (url) => url.startsWith(WS + "://") || url.startsWith(WS + "s://");
|
|
2347
2345
|
var connectionAttemptStatus = {};
|
|
2348
2346
|
var setWebsocket = Symbol("setWebsocket");
|
|
2349
2347
|
var connectionCallback = Symbol("connectionCallback");
|
|
@@ -2409,8 +2407,7 @@ var makeConnectionIn = (url, protocol, callback, connection, delay) => new Promi
|
|
|
2409
2407
|
resolve(makeConnection(url, protocol, callback, connection));
|
|
2410
2408
|
}, delay);
|
|
2411
2409
|
});
|
|
2412
|
-
var createWebsocket = (
|
|
2413
|
-
const websocketUrl = isWebsocketUrl(connectionString) ? connectionString : \`wss://\${connectionString}\`;
|
|
2410
|
+
var createWebsocket = (websocketUrl, protocol) => new Promise((resolve, reject) => {
|
|
2414
2411
|
if (infoEnabled3 && protocol !== void 0) {
|
|
2415
2412
|
info3(\`WebSocket Protocol \${protocol == null ? void 0 : protocol.toString()}\`);
|
|
2416
2413
|
}
|