This commit is contained in:
Theo Browne
2026-02-20 03:55:36 -08:00
parent 1a6d1afa78
commit 5e3b4b0279

View File

@@ -358,7 +358,8 @@ function App() {
const mainRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const wsUrl = `ws://${window.location.host}/ws`;
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
const wsUrl = `${wsProtocol}//${window.location.host}/ws`;
let ws: WebSocket;
let reconnectTimer: ReturnType<typeof setTimeout>;