mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-04 16:22:48 +08:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user