[GH-ISSUE #1603] Websocket traffic capture for iOS simulator or devices does not work for me #1596

Open
opened 2026-03-03 19:52:47 +03:00 by kerem · 2 comments
Owner

Originally created by @nn1900 on GitHub (Apr 14, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1603

Description

I followed all steps for enabling websocket traffic capture for iOS simulator or iPhone, however, nothing works.
I'm developing a react-native app and have already integrated with atlantis framework in my app.
I cannot even see any websocket traffic of other apps

WX20230415-022755@2x

Steps to Reproduce

  1. Follow the steps to install certificates on iOS simulator or real iOS device
  2. Turn off VPN softwares
  3. Configure proxy settings on my iphone
  4. Integrate with atlantis framework (the pod) with my app
  5. Start capturing
  6. Click "websocket" tab

Current Behavior

I can see ordinary http traffics but no websocket traffic at all.

Expected Behavior

Should see all web socket traffic or at least traffic from my own app

Environment

  • App version: Proxyman 4.6.1 (46010)
  • macOS version: e.g macOS Ventura 13.1
  • iPhone iOS version: 16.3.1
  • Simulator iOS version: 14.5
Originally created by @nn1900 on GitHub (Apr 14, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1603 ## Description I followed all steps for enabling websocket traffic capture for iOS simulator or iPhone, however, nothing works. I'm developing a react-native app and have already integrated with atlantis framework in my app. I cannot even see any websocket traffic of other apps ![WX20230415-022755@2x](https://user-images.githubusercontent.com/3831607/232127276-066e114f-2762-4aec-a4ab-e8993a1f09b5.png) ## Steps to Reproduce 1. Follow the steps to install certificates on iOS simulator or real iOS device 2. Turn off VPN softwares 3. Configure proxy settings on my iphone 4. Integrate with atlantis framework (the pod) with my app 5. Start capturing 6. Click "websocket" tab ## Current Behavior I can see ordinary http traffics but no websocket traffic at all. ## Expected Behavior Should see all web socket traffic or at least traffic from my own app ## Environment - App version: Proxyman 4.6.1 (46010) - macOS version: e.g macOS Ventura 13.1 - iPhone iOS version: 16.3.1 - Simulator iOS version: 14.5
Author
Owner

@NghiaTranUIT commented on GitHub (Apr 15, 2023):

It's not a bug. Atlantis is only capable of capturing Websocket traffic if it's called from URLSessionWebsocketTask. Since you're using a React-Native app, the WS might not use a this class -> As a result, Atlantis could not capture it.

If you don't use Atlantis, just use iPhone and macOS. The result is the same, URLSessionWebsocketTask doesn't respect the System HTTP Proxy, not sure why Apple does it.

<!-- gh-comment-id:1509466262 --> @NghiaTranUIT commented on GitHub (Apr 15, 2023): It's not a bug. Atlantis is only capable of capturing Websocket traffic if it's called from [URLSessionWebsocketTask](https://developer.apple.com/documentation/foundation/urlsessionwebsockettask). Since you're using a React-Native app, the WS might not use a this class -> As a result, Atlantis could not capture it. If you don't use Atlantis, just use iPhone and macOS. The result is the same, URLSessionWebsocketTask doesn't respect the System HTTP Proxy, not sure why Apple does it.
Author
Owner

@nn1900 commented on GitHub (Apr 15, 2023):

so there is no way to capture websocket traffic for iOS right now?

<!-- gh-comment-id:1509487575 --> @nn1900 commented on GitHub (Apr 15, 2023): so there is no way to capture websocket traffic for iOS right now?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1596
No description provided.