Move websocket to a dependency

This commit is contained in:
Matt 2020-06-20 18:10:36 -04:00
parent f64b250d91
commit 979c077231
2 changed files with 2 additions and 942 deletions

View file

@ -50,8 +50,8 @@ class WSClient(threading.Thread):
LOG.info("Websocket url: %s", wsc_url)
self.wsc = websocket.WebSocketApp(wsc_url,
on_message=self.on_message,
on_error=self.on_error)
on_message=lambda ws, message: self.on_message(ws, message),
on_error=lambda ws, error: self.on_error(ws, error))
self.wsc.on_open = self.on_open
while not self.stop: