Skip to main content
Version: Latest

dummySlowTick

description

Long-lived synthetic subscription that exercises the WebSocket path through the supergraph router (API-749). Emits a DummySlowTickEvent every intervalMs milliseconds and stops once the elapsed time crosses durationS seconds. The first event (tick = 0) is emitted immediately, so subscribers see activity without waiting a full interval.

The defaults (intervalMs = 10000, durationS = 70) produce exactly 7 ticks, 0 to 6. Tests and ad-hoc probes usually override both with much smaller values.

Use cases:

  • Validating WebSocket transport stability through router upgrades
  • Reproducing connection-drop scenarios during RC rollouts

Example:

subscription {
dummySlowTick {
tick
emittedAt
}
}
dummySlowTick(
intervalMs: Int = 10000
durationS: Int = 70
): DummySlowTickEvent!

Arguments​

dummySlowTick.intervalMs ● Int scalar graph-ql-types​

Interval between emitted ticks, in milliseconds. Default: 10000 (10s).

dummySlowTick.durationS ● Int scalar graph-ql-types​

Total wall-clock duration of the subscription, in seconds. Default: 70.

Type​

DummySlowTickEvent object graph-ql-types​

Payload emitted by dummySlowTick.

The payload includes the originating intervalMs / durationS so a router/observer can correlate received events with the requested cadence without having to remember the operation variables.