Updated client/client.py
Updated ws_talk.py
This commit is contained in:
parent
f8b6a2bf86
commit
dc1ccbb231
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
Loading…
Reference in New Issue
Block a user