/ws/
This commit is contained in:
parent
c261aa62d3
commit
2f16eac316
10
index.html
10
index.html
|
@ -120,11 +120,11 @@
|
||||||
this.psi.set(0); // set actual value
|
this.psi.set(0); // set actual value
|
||||||
|
|
||||||
// Set up websocket connection
|
// Set up websocket connection
|
||||||
this.sock = new WebSocket("wss://" + window.location.hostname + "/ws");
|
this.sock = new WebSocket("wss://" + window.location.hostname + "/ws/");
|
||||||
this.sock.addEventListener('open', function(event) { this.gotWsOpen(event); });
|
this.sock.addEventListener('open', this.gotWsOpen );
|
||||||
this.sock.addEventListener('message', function(event) { this.gotWsMessage(event); });
|
this.sock.addEventListener('message', this.gotWsMessage);
|
||||||
this.sock.addEventListener('error', function(event) { this.gotWsError(event); });
|
this.sock.addEventListener('error', this.gotWsError);
|
||||||
this.sock.addEventListener('close', function(event) { this.gotWsClose(event); });
|
this.sock.addEventListener('close', this.gotWsClose);
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue