mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 12:46:30 +00:00
2b6ebbfe2d
## Description: Guard `ws.send()` in `endTurn()` with a `readyState === OPEN` check to prevent sending messages to WebSocket connections that have already closed. Without this guard, broadcasting to a client whose connection closed between ticks can throw an exception and crash the game loop. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: barfires
Gatekeeper
Security module for botting, rate limiting, fingerprinting, etc.