firecamp-io / firecamp

VSCode for APIs, Postman Alternative.
https://firecamp.dev
317 stars 22 forks source link

[Feature Request] Make firecamp a proxy debugger which shows ws messages and events at the moment, they are fired inside a browser #127

Closed sla-te closed 1 year ago

sla-te commented 4 years ago

I have been looking for a solution like this for a long time already, apparently, there is none at all on the market. The only one I know of is HTTP debugger, but this one is also not able to decompress any binary traffic. Then there would be Fiddler but configuring this one for convenient websocket debugging is imo not really worth it, same goes for wireshark (both of these are as well not able to decompress).

This would be how it looks like in the developer tab of Chrome browser for instance: 746-567-max What we see here are zlib-compressed ws messages, which display all the events, that are currently happening in this opened connection, in this example on wss://gateway.discord.gg?encoding=json&v=6&compress=zlib-stream.

It would be an enormous timesaver, if there would be a software, able to fetch this opened connection, decompress the zlib stream and show the payloads, as a pretty printed json inside firecamp.

See this example from Discord's docs regarding how to decompress a zlib stream: https://discord.com/developers/docs/topics/gateway#transport-compression-transport-compression-example

As a motivation, most bigger services use compression to reduce traffic load, when in production making debugging of it a real hustle.

welcome[bot] commented 4 years ago

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp. Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

Nishchit14 commented 4 years ago

Thank you @chwba I am looking for it now 👍