3

I'm using Charles (4.0.2) as a proxy server to test my mobile app, which relies on WebSockets inside of a WKWebView. I am trying to simulate a situation in which a user briefly experiences no packet movement on their internet connection (about 5 seconds of 0 packets up or down). Here are my throttle settings:

enter image description here

I can't imagine how I could possibly throttle things more... yet it seems to have zero effect. The data is still moving up and down the web socket. Any idea how I can 100% throttle my connection?

AlexZ
  • 11,515
  • 3
  • 28
  • 42

1 Answers1

1

You can use Network Link Conditioner iphone's setting:

Setting -> Developer -> Network Link Conditioner -> Status

enter image description here

Choose a profile (in your case 100% Loss seem appropriate) and enable its.

Nhat Dinh
  • 3,378
  • 4
  • 35
  • 51
  • I'd love to do that, but I can't connect switch out of my app for this test – AlexZ Feb 03 '17 at 03:10
  • what do you mean about "I can't connect switch out of my app for this test" ? – Nhat Dinh Feb 03 '17 at 03:15
  • Sorry that was a typo. I can't context switch from my app to the link conditioner settings. The test is good connection -> 5 seconds of no connection -> good connection again, without leaving the app – AlexZ Feb 03 '17 at 06:14
  • How about turn your iPhone or your mac into a Wifi hotspot, when you want no network connection , simply disconnect your mac or iphone from wifi. – Nhat Dinh Feb 03 '17 at 06:22