Updated ws_talk.py
This commit is contained in:
parent
758171a27c
commit
3ba0e153fb
|
|
@ -1,8 +1,8 @@
|
|||
import json
|
||||
from websocket import create_connection
|
||||
|
||||
ws = create_connection("wss://ws.dogechain.info/inv")
|
||||
ws.send(json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
||||
ws = create_connection("ws://192.168.1.1/update")
|
||||
ws.send()#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
||||
result = ws.recv()
|
||||
print(result)
|
||||
ws.close()
|
||||
Loading…
Reference in New Issue
Block a user