From dc1ccbb23180b50abe214d14ae35c5ed0c25602f Mon Sep 17 00:00:00 2001 From: mirai Date: Fri, 2 Dec 2022 08:24:00 +0300 Subject: [PATCH] Updated client/client.py Updated ws_talk.py --- client/client.py | 1 + ws_talk.py | 1 + 2 files changed, 2 insertions(+) diff --git a/client/client.py b/client/client.py index c772824..fbd8245 100644 --- a/client/client.py +++ b/client/client.py @@ -64,6 +64,7 @@ class Client: time.sleep(0.05) #r = requests.post(self.info_url) ws.send(payload="") + r = ws.recv() if last_try == r.json(): continue last_try = r.json() diff --git a/ws_talk.py b/ws_talk.py index 830032b..1f84328 100644 --- a/ws_talk.py +++ b/ws_talk.py @@ -5,5 +5,6 @@ ws = create_connection("ws://localhost:1212/update") while True: ws.send(payload="")#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"})) result = ws.recv() + print(eval(result)) print(result) ws.close() \ No newline at end of file