diff --git a/client/src/App.tsx b/client/src/App.tsx index ec5e56a..868c099 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -24,7 +24,7 @@ function App() { const [finished, setFinished] = useState(false) const [rpcConnection, setRpcConnection] = useState(null) - const socketUrl = 'ws://' + window.location.host + '/websocket/' + const socketUrl = ((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.host + '/websocket/' useWebSocket(socketUrl, { onOpen: function (ev) {