Close SSE connections when clients lag behind #79

Merged
Breadway merged 1 commit from fix/bb-90-sse-lag into main 2026-10-02 12:00:44 +08:00
Owner

When the broadcast receiver reports lag, end the SSE response so EventSource reconnects and clients can resync from a fresh snapshot. Document the reconnect behavior and cover lag termination with a focused regression test.

Verified with cargo test --workspace, cargo clippy --workspace --all-targets -- -D warnings, and cargo run -p xtask -- check-docs. The frontend build was not run because this isolated worktree has no npm dependencies.

Closes #77

When the broadcast receiver reports lag, end the SSE response so EventSource reconnects and clients can resync from a fresh snapshot. Document the reconnect behavior and cover lag termination with a focused regression test. Verified with `cargo test --workspace`, `cargo clippy --workspace --all-targets -- -D warnings`, and `cargo run -p xtask -- check-docs`. The frontend build was not run because this isolated worktree has no npm dependencies. Closes #77
fix: close SSE stream when broadcast receiver lags
All checks were successful
check / check (push) Successful in 4m6s
d72d560409
Author
Owner

Implementation is available in PR #79 at d72d560409cf4fffb4429f65da0eea2288d9a42f. Local workspace tests, Clippy, and check-docs passed. Exact-head CI is pending and waiting to run; move this card back to TODO if CI fails.

Implementation is available in PR #79 at `d72d560409cf4fffb4429f65da0eea2288d9a42f`. Local workspace tests, Clippy, and `check-docs` passed. Exact-head CI is pending and waiting to run; move this card back to TODO if CI fails.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Breadway/breadboard!79
No description provided.