heartbeat-monitor/node_modules/next/dist/server/web/web-on-close.d.ts
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- Full-featured monitoring dashboard for local web apps
- Real-time status tracking with uptime percentages
- Visual sparklines for status history
- Add/Edit/Delete apps dynamically
- Categories and color coding
- Auto-refresh every 30 seconds
- API endpoints for apps and status management
2026-02-18 11:16:01 -06:00

13 lines
542 B
TypeScript

/** Monitor when the consumer finishes reading the response body.
that's as close as we can get to `res.on('close')` using web APIs.
*/
export declare function trackBodyConsumed(body: string | ReadableStream, onEnd: () => void): BodyInit;
export declare function trackStreamConsumed<TChunk>(stream: ReadableStream<TChunk>, onEnd: () => void): ReadableStream<TChunk>;
export declare class CloseController {
private target;
listeners: number;
isClosed: boolean;
onClose(callback: () => void): void;
dispatchClose(): void;
}