fix(api): end every Connection of a Room when it is evicted #548
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project!548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/435-evict-ends-spectators"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Evicting a Room now ends every Connection it still holds, the way vacating a Seat already ends its other tabs. Watching does not keep a Room alive: ADR 0015 already decided that Spectators never extend its life, so the eviction rule is unchanged.
On the front, an ended stream reconnects, the server refuses the code as
ROOM_NOT_FOUND, anduseRoomChangeslatches the Room closed, whichroom-closed.test.tsxalready covers.Evidence
apps/api/src/room/room-changes.test.ts:next()never resolves.After: passes; the five gate commands are green locally.
Merge Danger
Door: two-way
Blast Radius: small
Only Rooms already being evicted are touched; their Spectators now see the closed-Room modal instead of a frozen board.
Closes #435
Screenshots
Before is production, after is this merge request's review app at
c842db7.Desktop
Mobile
added 21 commits
mainc842db7f- fix(api): end every Connection of a Room when it is evictedCompare with previous version