Broadcast a raw SSE event to ALL currently connected clients.
Gracefully close all open SSE connections and stop the heartbeat.
Attach to an existing node:http IncomingMessage + ServerResponse pair.
Useful for embedding inside Express, Fastify raw-mode, Hono node adapter, etc.
Push an entity change to all subscribed SSE clients. Call this from your transport upsert callbacks, realtime adapter handlers, or mutation endpoints.
Returned by
createHtmxSseServer.