An open API service indexing awesome lists of open source software.

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 😱

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);
};
```