allinurl / gwsocket

fast, standalone, language-agnostic WebSocket server RFC6455 compliant
http://gwsocket.io
MIT License
745 stars 67 forks source link

Allow to read from gwsocket’s stdin with (unnamed) pipe #7

Closed jirutka closed 5 years ago

jirutka commented 7 years ago

It’d be great to be able to do simply tail -f /var/log/nginx/access.log | gwsocket.

Currently it’s possible to read user input from stdin and/or write to stdout using gwsocket --pipein=/dev/stdin --pipeout=/dev/stdout, but this doesn’t work with |.

allinurl commented 7 years ago

I'll look into this, shouldn't be too bad adding stdin to the fd set. Thanks for pointing this out!