Skip to content

Add Built-in SSE Support in GoFr #3038

@coolwednesday

Description

@coolwednesday

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.

Metadata

Metadata

Assignees

Labels

goPull requests that update Go codegood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions