vi / websocat

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

Is there any way to print plain text of request and response when connecting to wss endpoint ? #238

Closed AlwaysNoobCoder closed 7 months ago

AlwaysNoobCoder commented 7 months ago

I can use wireshark + export SSLKEYLOGFILE=~/.ssl-key.log to decrypt packets for browser.

but don't know how to do with websocat.

vi commented 7 months ago

You can build WebSocket connector manually using overlays, then also use log: overlay for debug printing: https://github.com/vi/websocat/blob/master/moreexamples.md#at-http-and-websocket-protocol-level