property IRequestContext.signal
Since 0.2.0

An abort signal that fires when the underlying HTTP connection is severed (client disconnect, timeout). Populated by the kernel's request-context factory from the native Request.signal; falls back to a non-aborting sentinel so handlers always have a live signal to listen on.

Used by streaming producers (SSE heartbeats, channel cleanup) to stop work on client disconnect and avoid leaking producers.

Type

Usage

import { type IRequestContext } from "common/src/index.ts";