Simple websocket client in Python
If you’re developing a websocket app you may need to throw some tests at it. Whilst looking for a websocket client I came across this client, which makes it very easy to generate websocket calls
To test it out:
- pip install websocket-client
- python
- import websocket
- ws = websocket.WebSocket()
- ws.connect(“ws://example.com/websocket”)
- ws.send(“Hello, World”)