fix: ensure we are using a ws protocol
This commit is contained in:
parent
36529bfe06
commit
bb7c7dcece
|
@ -70,7 +70,9 @@ export async function subscribeToEntry(
|
|||
endpointPath: opts.endpointSubscribeEntry,
|
||||
});
|
||||
|
||||
const socket = new WS(url);
|
||||
const wsUrl = url.replace(/^http/, "ws");
|
||||
|
||||
const socket = new WS(wsUrl);
|
||||
|
||||
socket.once("open", () => {
|
||||
const packer = new Packer();
|
||||
|
|
Loading…
Reference in New Issue