Skip to content

basalt / realtime/src / sseConnection

Function: sseConnection() ​

> sseConnection(meta, io): Connection

Defined in: realtime/src/transport.ts:28

Builds an SSE Connection. The caller supplies how to write to and end the response (adapter-specific: fastify reply.raw, express res, a Hono stream), keeping this helper framework-neutral.

Parameters ​

meta ​

ConnectionMeta

io ​

end ​

write ​

Returns ​

Connection

Released under the MIT License.