vi / websocat

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

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

Closed AlwaysNoobCoder closed 2 months ago

AlwaysNoobCoder commented 2 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 2 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