hack-house/ws_talk.py
mirai 92eff84613 Updated run_server.sh
Updated ws_talk.py
2022-12-02 08:19:30 +03:00

8 lines
228 B
Python

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)
ws.close()