This commit is contained in:
DylanSpeiser-BMD 2024-07-09 09:48:27 -07:00
parent 9246e26bfc
commit 3c1c8aaed5

View file

@ -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;