|
|
@ -26,7 +26,8 @@ class WS: |
|
|
|
sys.exit(1) |
|
|
|
else: |
|
|
|
print(f"Run after setup {SERVICE_NAME}: {START_AFTER_CONNECT}") |
|
|
|
self.ws = websocket.WebSocketApp(backend, cookie="secretkey="+auth, on_close=self.on_close, on_open=self.on_open) |
|
|
|
addr = backend.replace("https://", "wss://") |
|
|
|
self.ws = websocket.WebSocketApp(addr, cookie="secretkey="+auth, on_close=self.on_close, on_open=self.on_open) |
|
|
|
|
|
|
|
@staticmethod |
|
|
|
def on_close(ws_self, status_code, msg): |
|
|
|