From b4c9b870b750514dc0e9058bb1cb1d1efb899196 Mon Sep 17 00:00:00 2001 From: gsd Date: Sun, 4 Feb 2024 13:56:44 +0300 Subject: [PATCH] fix --- ws.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ws.py b/ws.py index b7e8cbf..7a4845f 100644 --- a/ws.py +++ b/ws.py @@ -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):