https://github.com/progrium/wssh
wssh ("wish") is a command-line utility/shell for WebSocket inspired by netcat
https://github.com/progrium/wssh
Last synced: about 1 year ago
JSON representation
wssh ("wish") is a command-line utility/shell for WebSocket inspired by netcat
- Host: GitHub
- URL: https://github.com/progrium/wssh
- Owner: progrium
- Created: 2011-12-06T02:16:52.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T18:46:46.000Z (almost 3 years ago)
- Last Synced: 2024-05-08T22:01:42.408Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 265
- Watchers: 18
- Forks: 44
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-websockets - wssh - wssh ("wish") is a command-line utility/shell for WebSocket inspired by netcat. (Command-Line Interface (CLI) Tools / Protocols and APIs)
README
# wssh - websocket shell
wssh ("wish") is a command-line utility/shell for WebSocket inpsired by netcat.
## Install
- Assumes Python 2.7
It uses currently uses gevent 0.13, so you may need to install libevent. This is because it uses the great work in [ws4py](https://github.com/Lawouach/WebSocket-for-Python). My gevent websocket server+client in there could probably be generalized to work with Eventlet; then this could be trivially ported to Eventlet to drop the libevent dependency.
If you don't have libevent installed already, install it prior to running setup.py. You can install libevent using `apt-get` on Ubuntu or `brew` on a Mac.
git clone git://github.com/progrium/wssh.git
cd wssh
python setup.py install
## Usage
Listen for WebSocket connections on a particular path and print messages to STDOUT:
wssh -l localhost:8000/websocket
Once connected you can use STDIN to send messages. Each line is a message. You can just as well open a peristent client connection that prints incoming messages to STDOUT and sends messages from STDIN interactively:
wssh localhost:8000/websocket
## Contributing
Feel free to fork and improve.
## License
MIT