Updated client/client.py

Updated ws_talk.py
This commit is contained in:
mirai 2022-12-02 08:24:00 +03:00
parent f8b6a2bf86
commit dc1ccbb231
2 changed files with 2 additions and 0 deletions

View File

@ -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()

View File

@ -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()