feat(ws): add stick-input WebSocket message handler and client support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
itsrubberduck
2026-02-20 18:30:26 +01:00
parent 4e74b74255
commit c4c841a2c1
2 changed files with 19 additions and 0 deletions

View File

@@ -174,6 +174,14 @@ export default defineWebSocketHandler({
userSessionMap.set(data.userId, session.code)
break
}
case 'stick-input': {
// Broadcast stick/throttle input to all peers in session (for PFD display)
const session = findSessionByPeer(peerId)
if (!session) return
broadcastToSession(session, { type: 'stick-input', data: data.data }, peerId)
break
}
}
},