fix: Route transfer message to torch handler in sync server

This commit is contained in:
2026-02-14 18:28:42 -06:00
parent 1a51b34228
commit 39faf4bf77

View File

@@ -78,7 +78,7 @@ export function startSyncServer() {
const data = JSON.parse(message.toString())
// Route to appropriate handler based on message type
if (data.type?.startsWith('torch-') || ['register', 'request', 'release'].includes(data.type)) {
if (data.type?.startsWith('torch-') || ['register', 'request', 'release', 'transfer'].includes(data.type)) {
handleTorchMessage(ws, data, broadcast)
}
// Git doesn't expect messages from client