Simple tool that connects to WebSocket and pipes stdin/stdout to/from it.
Text mode messages are separated by \n
, in binary mode bytes transmitted as-is.
go get github.com/pixelbender/ws
# ws wss://echo.websocket.org <<< hello
Connected: wss://echo.websocket.org
hello
ws [options] url
-binary
Binary mode
-origin string
Origin
-protocol string
Protocol