wsxhub is a websocket server and client for using from other tools.
This is in development.
go get -u github.com/notomo/wsxhub/...
# start server and wait
wsxhub server
# send {"key":"value"} to server
echo '{"key":"value"}' | wsxhub send
# receive only json has {"key":1}
wsxhub receive --filter '{"operator": "and", "filters": [{"type": "exact", "map": {"key":1}}]}'