Skip to content

Response delays ​

Simulate realistic API latency to test loading states, timeout handling, and UX. In the preset in .llmockrc.json:

json
{
  "responseDelay": { "min": 800, "max": 2500 }
}

The server picks a random value in the range for each request. Set both values to 0 for instant responses. For one run, use --delayMin and --delayMax; to change it from a test, use PATCH /admin/delay.

Profileminmax
Instant (development)00
Fast100300
Realistic production8002500
Slow / timeout testing30008000
Fixed delay10001000

With chaos mode on, the delay runs first and then the error is sent.

Released under the MIT License.