mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-19 03:25:05 +00:00
ws_generic_monitor: Fix whitespace
Signed-off-by: matthew <stidmatt@gmail.com>
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user