realtime/sse_constants.ts

Hono-free SSE wire constants.

Split from sse.ts (which pulls hono/streaming via streamSSE) so the stream-framing constants are importable by cross-process test suites asserting on the wire without dragging in the in-process Hono SSE implementation.

view source

Declarations
#

SSE_CONNECTED_COMMENT
#

realtime/sse_constants.ts view source

": connected\n\n" import {SSE_CONNECTED_COMMENT} from '@fuzdev/fuz_app/realtime/sse_constants.js';

The comment line written immediately on SSE stream open. Flushes headers + confirms the connection is live before the first real event. Cross-process SSE tests assert the stream emits this on connect.

Imported by
#