mirror of https://github.com/jetkvm/kvm.git
chore: update comment for KEEPALIVE_INTERVAL
This commit is contained in:
parent
8d03792479
commit
4501b96237
|
@ -222,7 +222,7 @@ export default function useKeyboard() {
|
||||||
}, [rpcHidReady, cancelOngoingKeyboardMacroHidRpc, abortController]);
|
}, [rpcHidReady, cancelOngoingKeyboardMacroHidRpc, abortController]);
|
||||||
};
|
};
|
||||||
|
|
||||||
const KEEPALIVE_INTERVAL = 75; // 200ms interval
|
const KEEPALIVE_INTERVAL = 75; // TODO: use an adaptive interval based on RTT later
|
||||||
|
|
||||||
const cancelKeepAlive = useCallback(() => {
|
const cancelKeepAlive = useCallback(() => {
|
||||||
if (keepAliveTimerRef.current) {
|
if (keepAliveTimerRef.current) {
|
||||||
|
|
Loading…
Reference in New Issue