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