ProxymanApp / Proxyman

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

Support websocket #182

Closed yisiqi closed 5 years ago

yisiqi commented 5 years ago

I am developing a chat app using WebSocket. It would be helpful if this could support WebSocket.

Screen-Shot-2016-07-18-at-12 19 38-PM-1024x486
NghiaTranUIT commented 5 years ago

Thank for the feature request. We're aware that there is large number of users, who requests this WebSocket debugging too.

It's in our roadmap. We will support it soon 👍 Stay tuned!

ConfusedVorlon commented 5 years ago

yup - that would be great. Specifically for me, I'd like to see websocket traffic on the local network (iOS device talking to TV - both connected to the mac via internet sharing)

superandrew commented 5 years ago

I'm adding my self to the list of the supporters, because React Native Debugger won't work if proxyman is active when application starts. However, is there any known workaround for this?

NghiaTranUIT commented 5 years ago

Hey, sorry for this. From what I see that there is no workaround for this issue until I fix this bug. The React Native debugger seems open the URI "rndebugger://set-debugger-loc?host=localhost&port=8081" and Proxyman doesn't recognize it properly.

I will fix this bug separately and notify you in this week @superandrew 👍

NghiaTranUIT commented 5 years ago

Bug #240

NghiaTranUIT commented 5 years ago

All done 👍

Changelogs

Screen Shot 2019-10-16 at 11 25 07

I will rollout the BETA soon 👍

NghiaTranUIT commented 5 years ago

Hey guys, Good news that here is the BETA build for the WebSocket debugger 🍺

https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_1.6.2_Websocket_Debugger.dmg

Sorry for delay 1 day since there was an issues on Socket IO (https://github.com/ProxymanApp/Proxyman/issues/303) 🌮

Some screenshot to visualize easier 😄

Screen_Shot_2019-10-17_at_10_08_56

I'm going to release in this week including with the Blog too 🍎

NghiaTranUIT commented 5 years ago

Hey @modestman, @endel, @drekka, @metabren, @ollitapa, and @yisiqi

Just friendly reminder that this Websocket feature has been done in the latest Proxyman 1.7.0 🎉

Let give it a try and feel free to report any bugs 🐞

Thank you guys in advance 💯

drekka commented 5 years ago

Awesome guys !

chilikasha commented 4 years ago

hey @NghiaTranUIT maybe any advice: same app, but on android I see both wss and https traffic, on ios - only https. what could be the reason?

NghiaTranUIT commented 4 years ago

Can you try on the latest version 1.12.0, which we released yesterday? Since I discovered a bug where some URLs don't appear on Proxyman app. You can update directly from Proxyman app.

Meanwhile, if it's still persisted, can you share me how the WSS URL look like? I would investigate it 👍

madneal commented 4 years ago

try to install as the tutorial, and I install slack app. But I can only see the https and http traffic, no websocket. @NghiaTranUIT

the proxyman version is 2.1.0

NghiaTranUIT commented 4 years ago

Hi @madneal, if you mean Slack app on macOS, we couldn't see it because the Slack app uses SocketIO, and it automatically fallbacks to HTTP/HTTPS request.

You can try Slack on iOS, you can see the domain wss-mobile.slack.com. Enable SSL-Proxying for this domain and you can see it 👍

NghiaTranUIT commented 4 years ago

You can test by visiting github.com, enable live.github.com, then you can see WS on wss://live.github.com

Screen_Shot_2020-06-29_at_09_36_37
madneal commented 4 years ago

@NghiaTranUIT Thanks for your quick reply. The app I installed is IOS, not for mac. And if I configured wss-mobile.slack.com in SSL proxying list, the status code was 999. image image

And the websocket is empty. image

NghiaTranUIT commented 4 years ago

Just wondering @madneal, do you able to see HTTP/HTTPS requests/responses from the Slack iOS app? Just to confirm that you're installed Proxyman CA on your iPhone properly.

madneal commented 4 years ago

@NghiaTranUIT I was able to see HTTP/HTTPS requests/responses from the Slack IOS app if I did not configure SSL proxying list for the host. And I have installed the CA on my iphone.

NghiaTranUIT commented 4 years ago

Just check on the latest Slack iOS app and Proxyman 2.1.0 and it works. I'm able to see wss content.

Can you help me to reset all app by Help Menu -> Advanced -> Reset all and try again @madneal

Screen_Shot_2020-06-29_at_13_04_21
madneal commented 4 years ago

The result is still same. The response code is 999 error if I config it in SSL proxying list. If I remove the host, the reponse code is 200. But I cannot see any websocket messages. I have reset all data.

image

Burp works for websocket.

image

NghiaTranUIT commented 4 years ago

can you share with me the version of your Slack app and macOS? I would like to investigate it 👍

madneal commented 4 years ago

My mac version is 10.14.6. I think it has nothing to do with the Slack version. As it didn't work for live.github.com either.