Schedules

Schedules

Schedules automatically fire an event on a repeating interval — without you having to click Trigger manually. This is ideal for simulating live data feeds like price ticks, order status updates, or real-time notifications in your frontend tests.

Creating a schedule

  1. Open your WS project and click the Schedules tab.
  2. Click Add Schedule.
  3. Configure:
    • Event — choose which event definition to fire
    • Interval — how often to fire (in seconds or minutes)
    • Target — broadcast or specific client ID (inherits from event by default)
  4. Toggle the schedule to Running to start it.

Available intervals

1 second
5 seconds
10 seconds
30 seconds
1 minute
5 minutes
15 minutes
1 hour

Custom intervals (e.g. every 45 seconds) can be set by typing a value directly in the interval field.

Use cases

Price feed simulation Every 1s
Fire a price:tick event every second to test how your trading or crypto UI handles rapid updates.
Order status polling Every 10s
Update order status every 10 seconds to simulate backend processing without a real order management system.
Notification feed Every 30s
Send a new:notification event every 30 seconds to test notification badge counts and toast displays.
Heartbeat / keepalive Every 1m
Fire a server:ping event every minute to test client-side reconnection and timeout handling logic.

Managing schedules

Running — schedule is active and firing at the configured interval.
Paused — schedule is stopped but not deleted. Toggle back to Running to resume.

Schedules only fire while the MockLab server is running. If no clients are connected, the event is fired but immediately discarded (not queued). When a new client connects, they will receive the next scheduled fire.

Plan limits

Plan Schedules per project Minimum interval
Free 1 schedule 5 seconds
Pro 20 schedules 1 second