ws_generic_monitor: Fix whitespace

Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
matthew
2021-12-03 08:21:10 -08:00
parent 5cb74c1690
commit 65a6c67a0c

View File

@@ -13,13 +13,11 @@ WS_Listener has three arguments in general : lfclient_host, _scriptname, _callba
""" """
class WS_Listener():
class WS_Listener:
def __init__(self, lfclient_host="localhost", _scriptname=None, _callback=None): def __init__(self, lfclient_host="localhost", _scriptname=None, _callback=None):
import websocket import websocket
self.scriptname = _scriptname self.scriptname = _scriptname
websocket.enableTrace(True) websocket.enableTrace(True)
self.ws = websocket.WebSocketApp("ws://" + lfclient_host + ":8081", on_message=_callback) self.ws = websocket.WebSocketApp("ws://" + lfclient_host + ":8081", on_message=_callback)
self.ws.run_forever() self.ws.run_forever()