mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-23 08:22:46 +00:00
Move websocket to a dependency
This commit is contained in:
parent
f64b250d91
commit
979c077231
2 changed files with 2 additions and 942 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue