-
Notifications
You must be signed in to change notification settings - Fork 4
[Server] Bot Reconnection Flow #272
Copy link
Copy link
Open
Labels
D2Medium DifficultyMedium DifficultyP1Low PriorityLow PriorityS26Current relevant issue that should be worked on in the spring 2026 semesterCurrent relevant issue that should be worked on in the spring 2026 semesterdraftTicket is still being written - don't work on it yetTicket is still being written - don't work on it yet
Metadata
Metadata
Assignees
Labels
D2Medium DifficultyMedium DifficultyP1Low PriorityLow PriorityS26Current relevant issue that should be worked on in the spring 2026 semesterCurrent relevant issue that should be worked on in the spring 2026 semesterdraftTicket is still being written - don't work on it yetTicket is still being written - don't work on it yet
Allow bots to reconnect to the server after a timeout.
Since a list of disconnected robots is stored, pinging them until they respond should be easy.
This would allow us to move the robots remotely via the admin page rather than requiring a physical fix every time.
Note: when the bots do reconnect, the game should not resume since we don't know the state they disconnected in.
Key Code:
src/server/api/tcp-interface.ts,src/server/robot/robot-manager.tsAcceptance: disconnected bots are able to reconnect and be moved by the server.