Skip to content

Enforce multiplayer session capacity - #2

Open
tyl-droid wants to merge 1 commit into
CoachsTimeMachine:masterfrom
tyl-droid:fix/session-capacity
Open

tyl-droid wants to merge 1 commit into
CoachsTimeMachine:masterfrom
tyl-droid:fix/session-capacity

Conversation

@tyl-droid

Copy link
Copy Markdown

Summary

  • reject new players when a game session reaches MaxCapacity
  • report the correct IsFull state to clients
  • prevent rejected joins from removing players from their current session
  • prevent duplicate session membership and clean up stale duplicates on disconnect
  • return InsufficientSpace from game-session routes when a join is rejected

Verification

  • bun test src/sessions.test.ts — 5 passed
  • verified zero-capacity sessions reject joins and report IsFull: true
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant