diff --git a/visualizer/views/index.tpl b/visualizer/views/index.tpl index 0b95586..17ce168 100644 --- a/visualizer/views/index.tpl +++ b/visualizer/views/index.tpl @@ -146,7 +146,7 @@ * Websocket handling * *********************************/ - var ws = new WebSocket("ws://localhost:8080/websocket"); + var ws = new WebSocket("ws://" + window.location.host + "/websocket"); ws.onopen = function() { console.log("Websocket connected."); };