vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
7.18k stars 278 forks source link

User friendliness TODO list #5

Open vi opened 6 years ago

vi commented 6 years ago
alkorsan commented 6 years ago

the readme says:

Replies to WebSocket pings are not tested at all

I tested with chrome websocket server interactively: websocat ws://127.0.0.1:9222/devtools/page..... and ping pong seems to work very well this is a wireshark screenshot showing them:

websocat ping pong
vi commented 6 years ago

That should happen on publish (i.e. on version 1.0.0 non-beta).

vi commented 6 years ago

Is it Websocat sending pings and getting replies or Chrome sending pings and Websocat replies?

alkorsan commented 6 years ago

Chrome first send the ping then Websocat reply.

Zibri commented 5 years ago

I would also add an option to wrap the input/output of the executed command with another command. An example would be for example to wrap in base64 so that the input is decoded then passed to the command then the output of the command is decoded and passed to base64 (or any other program).

So image I have a command like this:

encrypt_decript(line,pw)

if would be great to have an option to wrap socat input/ouput and websocket input/ouput with that command