Skip to content

[FEATURE] Server-Sent Events (SSE) Streaming Support #8

@kavix

Description

@kavix

WebSocket support exists, but SSE (Server-Sent Events) is not supported. SSE is widely used for real-time APIs and is simpler than WebSockets.

Proposed Implementation

kurl sse https://api.example.com/events

Real-time formatted output with event type coloring

Reconnection handling with Last-Event-ID

Filter by event type:

--sse-filter message

Save events to file:

--sse-output events.log

Why this matters

SSE is the standard for server-to-client streaming (logs, notifications, live updates). Many APIs use it exclusively.

Acceptance Criteria

  • SSE connection and event parsing
  • Colored event type display
  • Auto-reconnection with exponential backoff
  • Event filtering and routing
  • Connection health monitoring

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions