mirror of https://github.com/jetkvm/kvm.git
chore: change version handle
This commit is contained in:
parent
8abcd1efe8
commit
bd6378830b
|
@ -81,8 +81,11 @@ export function useHidRpc(onHidRpcMessage?: (payload: RpcMessage) => void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.version < HID_RPC_VERSION) {
|
if (message.version > HID_RPC_VERSION) {
|
||||||
console.error("Server is using an older HID RPC version than the client", message);
|
// we assume that the UI is always using the latest version of the HID RPC protocol
|
||||||
|
// so we can't support this
|
||||||
|
// TODO: use capabilities to determine rather than version number
|
||||||
|
console.error("Server is using a newer HID RPC version than the client", message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue