refactor: Use dedicated WebSocket server for torch sync

- Add torch WebSocket server on port 4106
- Remove HTTP polling, use WebSocket for instant sync
- Torch state changes broadcast immediately to all clients
- Auto-reconnect on disconnect
- Add port 4106 to kill-ports script
This commit is contained in:
2026-02-14 16:40:40 -06:00
parent fe99c9ff61
commit c98f3e2b99
8 changed files with 309 additions and 334 deletions

View File

@@ -2,6 +2,7 @@
export const PORT_HTTP = 4101
export const PORT_TERMINAL = 4103
export const PORT_GIT = 4105
export const PORT_TORCH = 4106
// Terminal configuration
export const WORKING_DIR = process.cwd().replace(/[\\\/]server$/, '')