Updated ws_talk.py
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
import json
|
import json
|
||||||
from websocket import create_connection
|
from websocket import create_connection
|
||||||
|
|
||||||
ws = create_connection("ws://localhost:1212/update")
|
ws = create_connection("ws://localhost:1212/talk")
|
||||||
while True:
|
while True:
|
||||||
ws.send(payload="hello baby")#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
ws.send(payload="{'text': 123, 'username': 'bob'}")#json.dumps({"op":"addr_sub", "addr":"dogecoin_address"}))
|
||||||
result = ws.recv()
|
result = ws.recv()
|
||||||
print(eval(result))
|
print(eval(result))
|
||||||
print(result)
|
print(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user