https://github.com/tehsenaus/websocketify
Node.js port of websocketd, turns any app into a WebSocket server
https://github.com/tehsenaus/websocketify
cli nodejs websocket websocket-server websocketd
Last synced: 4 months ago
JSON representation
Node.js port of websocketd, turns any app into a WebSocket server
- Host: GitHub
- URL: https://github.com/tehsenaus/websocketify
- Owner: tehsenaus
- License: mit
- Created: 2015-06-12T20:42:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T01:23:08.000Z (over 9 years ago)
- Last Synced: 2025-07-28T08:56:29.542Z (11 months ago)
- Topics: cli, nodejs, websocket, websocket-server, websocketd
- Language: HTML
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# websocketify
Node.js port of [websocketd](https://github.com/joewalnes/websocketd), turns any app using STDIN/STDOUT into a WebSocket server.
## Install
```
npm install -g websocketify
```
## Usage
```
websocketify --port 8080 --address 127.0.0.1 -- tail -f /var/log/system.log
```
## Features
### Dev Console
websocketify includes the dev console from websocketd, which is very useful for debugging web socket servers.
Enable it with ```--devconsole```, then open in your browser at your ```--address``` and ```--port```.
### Singleton Mode
By default websocketify will spawn a new child process for each WebSocket connection. With ```--singleton```, one child process
will be shared between all connections.
- The child process will start on the first connection, and stop once the last connection is closed.
- Output from the process is sent to all connected sockets.
- Input from any connection is sent to the process's STDIN.
- Output is not buffered.