diff --git a/Ooui/Client.js b/Ooui/Client.js index 3c9b433..82c532c 100644 --- a/Ooui/Client.js +++ b/Ooui/Client.js @@ -1,6 +1,6 @@ // Create WebSocket connection. -const socket = new WebSocket ("ws://localhost:8080" + rootElementPath, "ooui-1.0"); +const socket = new WebSocket ("ws://" + document.location.host + rootElementPath, "ooui-1.0"); console.log("Web socket created");