Merge pull request 'merge ws test for root' (#1) from charlie-sans/reso-execution:main into main
Reviewed-on: #1
This commit is contained in:
commit
233cd36a4e
1 changed files with 13 additions and 0 deletions
13
ws.py
Normal file
13
ws.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import asyncio
|
||||||
|
import websockets
|
||||||
|
|
||||||
|
|
||||||
|
async def test_link():
|
||||||
|
async with websockets.connect('ws://localhost:5000/') as websocket:
|
||||||
|
for i in range(50):
|
||||||
|
print(f"Sending message {i}")
|
||||||
|
await websocket.send("SCRAM")
|
||||||
|
|
||||||
|
|
||||||
|
asyncio.get_event_loop().run_until_complete(test_link())
|
||||||
|
asyncio.get_event_loop().run_forever()
|
Loading…
Reference in a new issue