10 lines
276 B
Python
10 lines
276 B
Python
import json
|
|
from websocket import create_connection
|
|
|
|
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() |