From af5be8e9a2f42254e2957223df4233fffdebfb0c Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Sun, 20 Aug 2023 20:45:40 -0400 Subject: [PATCH] (hopefully) fix websockets breaking on secure origins --- client/src/AdriftClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/AdriftClient.ts b/client/src/AdriftClient.ts index 5cb27b4..23adadd 100644 --- a/client/src/AdriftClient.ts +++ b/client/src/AdriftClient.ts @@ -158,7 +158,7 @@ export class AdriftBareClient extends Client { webSocketImpl: WebSocketImpl, arrayBufferImpl: ArrayBufferConstructor ): WebSocket { - const ws = new webSocketImpl("ws:null", protocols); + const ws = new webSocketImpl("wss:null", protocols); // this will error. that's okay let initalCloseHappened = false; ws.addEventListener("close", (e) => {