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| Feature | What you get |
|---|---|
sse-feed | SSE 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().awaitbash
cargo run -p sse
cargo run -p sse_feed