method ISseConnection.close
ISseConnection.close(): void

Closes the connection: clears the heartbeat, closes the stream controller, and marks the connection as closed. Idempotent.

Return Type

void

Usage

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