delete: send_ws.py — does not serve heartbeat/harness/portal (#548)
Some checks failed
Deploy Nexus / deploy (push) Has been cancelled
Some checks failed
Deploy Nexus / deploy (push) Has been cancelled
This commit is contained in:
11
send_ws.py
11
send_ws.py
@@ -1,11 +0,0 @@
|
|||||||
import asyncio
|
|
||||||
import websockets
|
|
||||||
import json
|
|
||||||
import sys
|
|
||||||
|
|
||||||
async def send_msg(msg):
|
|
||||||
async with websockets.connect('ws://localhost:8765') as ws:
|
|
||||||
await ws.send(json.dumps({'type':'chat_message','content':msg,'username':'antigravity'}))
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
asyncio.run(send_msg(sys.argv[1]))
|
|
||||||
Reference in New Issue
Block a user