Skip to content

WatchdogOptions

Defined in: core/src/watchdog.ts:266

optional idleMs?: number;

Defined in: core/src/watchdog.ts:269

No byte this long after the response starts and the stream is dead. Defaults to STREAM_IDLE_MS.


optional onFirstChunk?: (ms) => void;

Defined in: core/src/watchdog.ts:280

Time to first byte for this call, reported once the byte arrives.

Parameter Type
ms number

void


optional progressMs?: number;

Defined in: core/src/watchdog.ts:272

No chunk this long, from the POST on, and the stream is going nowhere. Defaults to STREAM_PROGRESS_MS, or to idleMs when that is longer.


optional requireContent?: boolean;

Defined in: core/src/watchdog.ts:278

Reject a turn that ends having said nothing, as requireContent does. On by default: an empty completion is a failure in every loop, and the one shaped like a success is the one nobody catches.