Commit 65c629b
feat: Add connection resilience with auto-reconnect and heartbeat
- Add UnityConnection class with exponential backoff reconnection
- Add ConnectionState enum (Disconnected, Connecting, Connected, Reconnecting)
- Add heartbeat/ping-pong mechanism to detect stale connections
- Emit connection state change events for UI feedback
- Refactor McpUnity to use new UnityConnection class
- Add Jest test suite with 14 tests for connection handling
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 03d0e7e commit 65c629b
File tree
7 files changed
+5867
-658
lines changed- Server~
- src
- __tests__
- unity
7 files changed
+5867
-658
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments