visualizer: generalize websocket address

This commit is contained in:
Thomas Kolb 2024-02-15 22:44:45 +01:00
parent c7a4eb16bf
commit a157c1eedd

View file

@ -146,7 +146,7 @@
* Websocket handling * * Websocket handling *
*********************************/ *********************************/
var ws = new WebSocket("ws://localhost:8080/websocket"); var ws = new WebSocket("ws://" + window.location.host + "/websocket");
ws.onopen = function() { ws.onopen = function() {
console.log("Websocket connected."); console.log("Websocket connected.");
}; };