allinurl / gwsocket

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

Add support for stdin / stdout #18

Closed jhofstee closed 5 years ago

jhofstee commented 5 years ago

By default named pipes are used for io, this patch adds the option to use stdin / stdout as well. This allows e.g.

./gwsocket --std > log.txt tail -F /var/log/syslog | ./gwsocket --std

--stdin and --stdout are added for fine grained control.

closes https://github.com/allinurl/gwsocket/issues/7

todo: man page / README updates

(same as the previous one with some tabs versus 2 spaces changes)

jhofstee commented 5 years ago

(for completeness, this is a review for comment, it seem to work fine, but I don't the details of the implementation). I will update the man page and README if you are fine with it and make a new merge request.

allinurl commented 5 years ago

Merged. Thanks so much!!!

allinurl commented 5 years ago

I’ll test this out in a few days and post back if any changes are needed. Thanks again.