Commit Graph

7 Commits

Author SHA1 Message Date
Adam Shiervani 4e5ae37bf4 refactor: replace console.warn with console.info for HID RPC channel events 2025-09-16 12:35:25 +02:00
Adam Shiervani 5cac4c4604 refactor: simplify HID RPC keyboard input handling and improve key state management
- Updated `handleHidRPCKeyboardInput` to return errors directly instead of keys down state.
- Refactored `rpcKeyboardReport` and `rpcKeypressReport` to return errors instead of states.
- Introduced a queue for managing key down state updates in the `Session` struct to prevent input handling stalls.
- Adjusted the `UpdateKeysDown` method to handle state changes more efficiently.
- Removed unnecessary logging and commented-out code for clarity.
2025-09-16 01:48:13 +02:00
Siyuan Miao cc71e3273c fix: handshake won't happen if webrtc reconnects 2025-09-12 12:48:34 +02:00
Siyuan Miao 3901ac91e0 chore: use ordered unreliable channel for pointer events 2025-09-11 17:32:43 +02:00
Siyuan Miao 8e9554f4d6 chore: use unreliable channel to send keepalive events 2025-09-11 16:16:47 +02:00
Siyuan Miao 4b42c7e7e3 send keepalive when pressing the key 2025-09-11 14:10:18 +02:00
Aveline bcc307b147
feat: hid rpc channel (#755)
* feat: use hidRpcChannel to save bandwidth

* chore: simplify handshake of hid rpc

* add logs

* chore: add timeout when writing to hid endpoints

* fix issues

* chore: show hid rpc version

* refactor hidrpc marshal / unmarshal

* add queues for keyboard / mouse event

* chore: change logging level of JSONRPC send event to trace

* minor changes related to logging

* fix: nil check

* chore: add comments and remove unused code

* add useMouse

* chore: log msg data only when debug or trace mode

* chore: make tslint happy

* chore: unlock keyboardStateLock before calling onKeysDownChange

* chore: remove keyPressReportApiAvailable

* chore: change version handle

* chore: clean up unused functions

* remove comments
2025-09-04 22:27:56 +02:00