Update websocket path

This commit is contained in:
Matt 2019-12-10 22:41:35 -05:00
parent 4cb8506b81
commit ab1dcca938

View file

@ -43,7 +43,7 @@ class WSClient(threading.Thread):
device_id = self.client.config.data['app.device_id'] device_id = self.client.config.data['app.device_id']
server = self.client.config.data['auth.server'] server = self.client.config.data['auth.server']
server = server.replace('https', "wss") if server.startswith('https') else server.replace('http', "ws") server = server.replace('https', "wss") if server.startswith('https') else server.replace('http', "ws")
wsc_url = "%s/embywebsocket?api_key=%s&device_id=%s" % (server, token, device_id) wsc_url = "%s/socket?api_key=%s&device_id=%s" % (server, token, device_id)
LOG.info("Websocket url: %s", wsc_url) LOG.info("Websocket url: %s", wsc_url)