Update websocket url

For reverse proxy
This commit is contained in:
angelblue05 2017-07-27 18:41:56 -05:00
parent 299a0bd8f9
commit 030e557829

View file

@ -328,7 +328,7 @@ class WebSocketClient(threading.Thread):
else: else:
server = server.replace('http', "ws") server = server.replace('http', "ws")
websocket_url = "%s?api_key=%s&deviceId=%s" % (server, token, self.device_id) websocket_url = "%s/embywebsocket?api_key=%s&deviceId=%s" % (server, token, self.device_id)
log.info("websocket url: %s", websocket_url) log.info("websocket url: %s", websocket_url)
self._client = websocket.WebSocketApp(websocket_url, self._client = websocket.WebSocketApp(websocket_url,