kvmd: disabled legacy API by default

This commit is contained in:
Maxim Devaev
2024-12-26 05:05:03 +02:00
parent 56438a372e
commit 287244d376
2 changed files with 2 additions and 2 deletions

View File

@@ -293,7 +293,7 @@ export function Session() {
tools.httpGet("/api/auth/check", null, function(http) {
if (http.status === 200) {
__ws = new WebSocket(`${tools.is_https ? "wss" : "ws"}://${location.host}/api/ws?legacy=0`);
__ws = new WebSocket(`${tools.is_https ? "wss" : "ws"}://${location.host}/api/ws`);
__ws.sendHidEvent = (event) => __sendHidEvent(__ws, event.event_type, event.event);
__ws.onopen = __wsOpenHandler;
__ws.onmessage = __wsMessageHandler;