Description
GoFr currently does not provide first-class support for Server-Sent Events (SSE). While SSE can be implemented manually using the underlying net/http, developers must handle headers, flushing, and connection lifecycle themselves.
It would be helpful to provide a built-in SSE helper or streaming API that:
- Automatically sets required headers (
text/event-stream)
- Handles flushing
- Detects client disconnects
- Optionally supports named events and JSON payloads
This would reduce boilerplate and improve developer experience for real-time use cases such as notifications, dashboards, and live updates.
Description
GoFr currently does not provide first-class support for Server-Sent Events (SSE). While SSE can be implemented manually using the underlying
net/http, developers must handle headers, flushing, and connection lifecycle themselves.It would be helpful to provide a built-in SSE helper or streaming API that:
text/event-stream)This would reduce boilerplate and improve developer experience for real-time use cases such as notifications, dashboards, and live updates.