kopia lustrzana https://github.com/botheredbybees/kilnController
Make Websocket connect depend on where the client got the HTML
rodzic
64aa596a56
commit
0d7edffca8
|
@ -176,9 +176,10 @@ function updateProgress(percentage){
|
|||
$('#progressBar').html(percentage+'%');
|
||||
}
|
||||
|
||||
var host = "ws://" + window.location.hostname + ":8080";
|
||||
|
||||
var s = new WebSocket("ws://localhost:8080/status");
|
||||
var c = new WebSocket("ws://localhost:8080/control");
|
||||
var s = new WebSocket(host+"/status");
|
||||
var c = new WebSocket(host+"/control");
|
||||
|
||||
|
||||
c.onmessage = function(e)
|
||||
|
|
Ładowanie…
Reference in New Issue