You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add CircuitBreaker class in new network package with three states:
CLOSED (requests pass), OPEN (requests blocked), HALF_OPEN (one probe)
- Trips after 3 consecutive heartbeat failures, 10s cooldown before probe
- Integrate into GameNetworkHandler: gates saveMove and sendHeartbeat
- Connection UI reflects breaker state (Disconnected/Reconnecting/latency)
(We could also agree to remove circuit breaker as a part of our specification if time does not allow it)
Problem: Heartbeat exists, breaker state machine does not.
Target files (new + touched):
Refactor:
Acceptance criteria:
The text was updated successfully, but these errors were encountered: