Flaque / wail

A go tool for streaming stdin to a websocket 😱

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

./myServer | wail

In the client

const ws = new WebSocket("ws://localhost:80", "protocolOne");
ws.onmessage = function(event) {
  console.log(event.data);
};

About

A go tool for streaming stdin to a websocket 😱


Languages

Language:Go 100.0%