visualizer: generalize websocket address
This commit is contained in:
parent
c7a4eb16bf
commit
a157c1eedd
|
@ -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.");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue