emulate_network
Throttle a session's network to slow_3g, fast_3g, offline, or reset. Use to test loading spinners, skeleton states, offline fallbacks, and timeout handling.
Instructions
Throttle a session's network to a preset — slow_3g, fast_3g, offline, or reset. Returns {success}. Persists across navigations until reset. Use to test loading spinners, skeleton states, offline fallbacks, and timeout handling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | Network preset: slow_3g (500kbps/400ms), fast_3g (1.5Mbps/150ms), offline (no network), reset (back to normal) | |
| session_id | Yes | Session ID |