Network
throttle
Simulate network conditions: 3G, offline, or custom bandwidth/latency.
Usage
$ cdpilot throttle <preset>Arguments
| Name | Required | Description |
|---|---|---|
preset | required | slow3g, fast3g, offline, off, or custom <down_kbps> <up_kbps> <latency_ms> |
Examples
Simulate slow 3G network
$ npx cdpilot throttle slow3gSimulate fast 3G network
$ npx cdpilot throttle fast3gSimulate offline mode
$ npx cdpilot throttle offlineDisable throttling
$ npx cdpilot throttle offCustom: 500 kbps down, 100 kbps up, 200ms latency
$ npx cdpilot throttle custom 500 100 200