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