Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't see WebSocket traffic with SocketRocket library #122

Open
mmatiush opened this issue Dec 17, 2022 · 1 comment
Open

Doesn't see WebSocket traffic with SocketRocket library #122

mmatiush opened this issue Dec 17, 2022 · 1 comment
Assignees

Comments

@mmatiush
Copy link

Hello,

I'm using SocketRocket library on my iOS client app. I've also installed Atlantis.

This way, on desktop Proxyman I can see all HTTPS requests made from my iOS app. However, I don't see any WebSocket requests, the tab is just empty in Proxyman.

I tried using URLSessionWebSocketTask and the WebSocket requests are correctly displayed in Proxyman.

Could you suggest what might be an issue with SocketRocket and how to fix it?

@NghiaTranUIT NghiaTranUIT self-assigned this Dec 17, 2022
@NghiaTranUIT
Copy link
Member

Hey @mmatiush, SocketRocket uses NSInputStream and NSOutputSteam to perform the Websocket connection (Reference), so Atlantis doesn't capture it since Atlantis only supports URLSessionWebSocketTask.

I look around the source code, it might support HTTP Proxy. Here is the solution:

  1. Don't use Atlantis
  2. Learn to set up the SRProxyConnect and provide a proxy to SocketRocket
  3. Set the HTTP Proxy to localhost:9090 (Should test on Simulator)
  4. Proxyman macOS will automatically capture the traffic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants