https://github.com/kludex/socket-cli
WIP !!! :construction:
https://github.com/kludex/socket-cli
Last synced: about 2 months ago
JSON representation
WIP !!! :construction:
- Host: GitHub
- URL: https://github.com/kludex/socket-cli
- Owner: Kludex
- License: mit
- Created: 2021-01-23T00:55:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-23T01:42:56.000Z (over 4 years ago)
- Last Synced: 2024-12-12T15:38:08.102Z (10 months ago)
- Language: Python
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to socketio-cli 👋
![]()
![]()
![]()
> A command-line client for socket.io, websocket, unix-socket that has auto-completion and syntax highlighting.
This project was created from [socket-cli](https://github.com/gcaaa31928/socket-cli).
## ✨ Demo
### Just take a look
[](https://asciinema.org/a/GgXCsrUEhlY98xxlrhIQcRpNj?speed=2)## 🚀 Usage
install *socketio-cli* via pip:
```bash
pip install socketio-cli
```
```bash
Usage: socketio-cli [OPTIONS] [PATH]Options:
-t, --type TEXT [websocket, socketio, unix]
--help Show this message and exit.
````when you connect a socket.io server.
```bash
> 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
```bash
> connect
> send --data test
> recv
```
or a unix socket server
```bash
> connect
> send --data test
``````bash
> connect
> send --data
> on --event event_name
```## 🤝 Contributing
Contributions, issues and feature requests are welcome.
Feel free to check [issues page](https://github.com/gcaaa31928/socketio-cli/issues) and pull-request welcome.