A command-line client for socket.io, websocket, unix-socket that has auto-completion and syntax highlighting.
install socket-cli via pip:
pip install socket-cli
Usage: socket-cli [OPTIONS] [PATH]
Options:
-t, --type TEXT [websocket, socketio, unix]
--help Show this message and exit.
when you connect a socket.io server.
> connect
> emit --event event_name --data '{"test": "data"}'
> on --event event_name
> on --event event_name --namespace /admin
> emit --event event_name --data '{"test": "data"}' --namespace /admin
or a websocket server
> connect
> send --data test
> recv
or a unix socket server
> connect
> send --data test
> connect
> send --data
> on --event event_name
Contributions, issues and feature requests are welcome.
Feel free to check issues page and pull-request welcome.
- connect socket.io server with headers
- unit-testing, ci
👤 gcaaa31928
- Website: http://gcaaa.blogspot.tw/
- Github: @gcaaa31928
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator