Updated ws_talk.py
This commit is contained in:
parent
4f7ec2267c
commit
823e5328ea
|
|
@ -2,7 +2,8 @@ import json
|
|||
from websocket import create_connection
|
||||
|
||||
ws = create_connection("ws://localhost:1212/update")
|
||||
ws.send(payload="")#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
||||
result = ws.recv()
|
||||
print(result)
|
||||
while True:
|
||||
ws.send(payload="")#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
||||
result = ws.recv()
|
||||
print(result)
|
||||
ws.close()
|
||||
Loading…
Reference in New Issue
Block a user