Skip to content

Server-Sent Events (SSE) support #3

Description

@EdmondDantes

Implement Server-Sent Events per the WHATWG / RFC 8895 spec.

Scope

  • text/event-stream response mode with chunked / HTTP-2 framing.
  • Public PHP API for emitting events: id, event, data, retry fields.
  • Automatic flush on each event; integration with the response writer's backpressure.
  • Heartbeat / keep-alive comments to prevent intermediary timeouts.
  • Last-Event-ID resume header surfaced on the request.
  • Works over HTTP/1.1, HTTP/2, and HTTP/3.
  • PHPT tests covering reconnection, ID propagation, and backpressure.

Acceptance

  • Browser EventSource clients connect and receive events end-to-end.
  • No buffering between PHP send() and the wire under load.

Activity

  1. self-assigned this
    on Apr 30, 2026
  2. moved this to In Progress in True Async Boardon Apr 30, 2026
  3. added this to the Next milestone on Apr 30, 2026
  4. added a commit that references this issue on Apr 30, 2026
    689f755
  5. modified the milestones: Next, Next2 on May 16, 2026
  6. added a commit that references this issue on Jun 26, 2026
  7. moved this from In Progress to Done in True Async Boardon Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions