Skip to content

sse

Server-Sent Events helpers for Sova (channels, Last-Event-ID, keep-alive) · crate sova-sse 0.1.0 · id sse

bash
cargo add sova --features sse-feed
FeatureWhat you get
sse-feedSSE channel helpers (sova_sse).

SSE channel helpers: fan-out, Last-Event-ID, keep-alive.

Usage

rust
let mut app = App::web()
    .site("Feed")
    .public_url("http://127.0.0.1:3000");
app.install(Sse::new());
// routes — see examples/realtime/sse and sse_feed
app.run().await
bash
cargo run -p sse
cargo run -p sse_feed