@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/esm/index.js
CHANGED
|
@@ -2306,8 +2306,6 @@ var ServerProxy = class {
|
|
|
2306
2306
|
var { debug: debug4, debugEnabled: debugEnabled4, error: error3, info: info3, infoEnabled: infoEnabled3, warn: warn3 } = logger(
|
|
2307
2307
|
"websocket-connection"
|
|
2308
2308
|
);
|
|
2309
|
-
var WS = "ws";
|
|
2310
|
-
var isWebsocketUrl = (url) => url.startsWith(WS + "://") || url.startsWith(WS + "s://");
|
|
2311
2309
|
var connectionAttemptStatus = {};
|
|
2312
2310
|
var setWebsocket = Symbol("setWebsocket");
|
|
2313
2311
|
var connectionCallback = Symbol("connectionCallback");
|
|
@@ -2373,8 +2371,7 @@ var makeConnectionIn = (url, protocol, callback, connection, delay) => new Promi
|
|
|
2373
2371
|
resolve(makeConnection(url, protocol, callback, connection));
|
|
2374
2372
|
}, delay);
|
|
2375
2373
|
});
|
|
2376
|
-
var createWebsocket = (
|
|
2377
|
-
const websocketUrl = isWebsocketUrl(connectionString) ? connectionString : \`wss://\${connectionString}\`;
|
|
2374
|
+
var createWebsocket = (websocketUrl, protocol) => new Promise((resolve, reject) => {
|
|
2378
2375
|
if (infoEnabled3 && protocol !== void 0) {
|
|
2379
2376
|
info3(\`WebSocket Protocol \${protocol == null ? void 0 : protocol.toString()}\`);
|
|
2380
2377
|
}
|