Skip to content

Add leaveGame handler for golf websocket server#1153

Merged
aaylward merged 1 commit intomainfrom
golf_fixes
Apr 12, 2026
Merged

Add leaveGame handler for golf websocket server#1153
aaylward merged 1 commit intomainfrom
golf_fixes

Conversation

@aaylward
Copy link
Copy Markdown
Collaborator

@aaylward aaylward commented Apr 12, 2026

Wire the existing LeaveGameMessage type to a new handler. Player gets removed from the game but stays in the room. If removal drops an active game below 2 players, it ends automatically with scores calculated.

Closes #1151

Wire the existing LeaveGameMessage type to a new handler that removes a
player from their current game while keeping them in the room. If an
active game drops below 2 players after removal, the game ends
automatically with final scores calculated.

Fixes #1151
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
1d4-web 709b364 Commit Preview URL

Branch Preview URL
Apr 12 2026, 05:11 PM

@aaylward aaylward merged commit 4671d59 into main Apr 12, 2026
12 checks passed
@aaylward aaylward deleted the golf_fixes branch April 12, 2026 17:17
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.

Golf: add leaveGame handler so players can leave mid-game

1 participant