Create a portable Fetch Response that safely manages a Server-Sent Events stream.
Response
The helper owns SSE framing, JSON encoding, heartbeats, abort handling, bounded unread buffering, maximum lifetime, and cleanup. Authentication, replay, authorization, connection limits, and application reconciliation remain the caller's responsibility.
Create a portable Fetch
Responsethat safely manages a Server-Sent Events stream.The helper owns SSE framing, JSON encoding, heartbeats, abort handling, bounded unread buffering, maximum lifetime, and cleanup. Authentication, replay, authorization, connection limits, and application reconciliation remain the caller's responsibility.