axum-impl-sse
Installation
SKILL.md
axum-impl-sse
Overview
Server-Sent Events (SSE) is a one-way, server-to-client push channel over a
single long-lived HTTP response with body type text/event-stream. The browser
consumes it with new EventSource(url) and reconnects automatically when the
connection drops.
Axum exposes SSE through the axum::response::sse module. The module has
exactly three public types:
| Type | Role |
|---|---|
Sse<S> |
The response. Wraps a Stream and implements IntoResponse. |
Event |
One SSE record, built fluently from Event::default(). |
KeepAlive |
Idle-gap filler that holds quiet connections open. |