ws-tool 0.4.0-alpha

an easy to use websocket tool
Documentation
1
2
3
4
5
6
7
8
9
10
import asyncio
import websockets

async def hello():
    async with websockets.connect("ws://localhost:9000") as websocket:
        await websocket.send("Hello world!")
        resp = await websocket.recv()
        print(resp)

asyncio.run(hello())