ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.34k stars 177 forks source link

Support MessagePack for Websockets #2065

Open zotanmew opened 3 days ago

zotanmew commented 3 days ago

Description

MessagePack previewer is supported for HTTP responses. It'd be awesome if this was available for WebSocket events too, as they're currently displayed as binary data.

Why this feature/change is important?

It'd make debugging WebSocket connections that communicate through MessagePack messages infinitely easier.

NghiaTranUIT commented 3 days ago

Hi @zotanmew May I ask:

  1. Do your Websocket Response has this header: Content-Type: application/msgpack ?

I'd like to check to show the Message Pack correctly

zotanmew commented 2 days ago

It presently doesn't, though I don't think it should, since specifying a Content-Type with a 101 Switching Protocols response is probably not spec-compliant. I'll test if it works if I add it, though.

zotanmew commented 2 days ago

Hmm, it doesn't seem like it's possible to send custom headers when accepting WebSocket connections in ASP.NET MVC.