Fix SSE live updates being cancelled on user interaction #6

Merged
ryan merged 1 commits from fix/sse-request-cancellation into main 2026-03-03 18:52:06 +00:00
Owner

Summary

  • Disable requestCancellation on SSE connections for Connect 4 and Snake games
  • Fixes issue where live updates stopped working after any user interaction (moves, chat, etc.)

The default Datastar requestCancellation: 'auto' was cancelling the persistent SSE connection whenever other requests were made from the same element, requiring manual page refresh to restore updates.

## Summary - Disable `requestCancellation` on SSE connections for Connect 4 and Snake games - Fixes issue where live updates stopped working after any user interaction (moves, chat, etc.) The default Datastar `requestCancellation: 'auto'` was cancelling the persistent SSE connection whenever other requests were made from the same element, requiring manual page refresh to restore updates.
ryan added 1 commit 2026-03-03 18:50:17 +00:00
fix: disable SSE request cancellation for live game updates
All checks were successful
CI / Deploy / test (pull_request) Successful in 25s
CI / Deploy / lint (pull_request) Successful in 25s
CI / Deploy / deploy (pull_request) Has been skipped
1db6b2596e
The default Datastar requestCancellation:'auto' was causing SSE
connections to be cancelled whenever users interacted with the page
(making moves, sending chat messages, etc.), breaking live updates.
ryan merged commit 65dc672186 into main 2026-03-03 18:52:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/games#6