https://github.com/flaque/wail
A go tool for streaming stdin to a websocket 😱
https://github.com/flaque/wail
Last synced: 2 months ago
JSON representation
A go tool for streaming stdin to a websocket 😱
- Host: GitHub
- URL: https://github.com/flaque/wail
- Owner: Flaque
- Created: 2018-07-08T02:39:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T19:51:12.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T10:13:49.839Z (4 months ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wail 😱
Wail is a little go tool that listens for pipe input and then streams it to a websocket on port 80.
It's useful for sharing the contents of a log to other places on the interwebs.
## Usage
### On the server
```sh
./myServer | wail
```### In the client
```js
const ws = new WebSocket("ws://localhost:80", "protocolOne");
ws.onmessage = function(event) {
console.log(event.data);
};
```