wss
This commit is contained in:
parent
9246e26bfc
commit
3c1c8aaed5
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class BMDevice {
|
||||||
this.name = this.hostname.replace(".local","").replaceAll("-"," ");
|
this.name = this.hostname.replace(".local","").replaceAll("-"," ");
|
||||||
|
|
||||||
// Initialize WebSocket
|
// Initialize WebSocket
|
||||||
this.ws = new WebSocket("ws://"+hostname+"/control/api/v1/event/websocket");
|
this.ws = new WebSocket((this.useHTTPS ? "wss://" : "ws://")+hostname+"/control/api/v1/event/websocket");
|
||||||
|
|
||||||
// Get a self object for accessing within callback fns
|
// Get a self object for accessing within callback fns
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue