Remove legacy mode.

- Deleted the legacy WebSocket client implementation (`wstoclient.go`) and its test file (`wstoclient_test.go`).
- Removed legacy handling from the HTTP manager, including legacy proxy setup and routing.
- Cleaned up session management by removing legacy host checks and related functions.
- Eliminated the legacy WebRTC handler and its associated logic.
- Updated session interface to remove legacy methods.
- Removed legacy API documentation and configuration options from migration guide and help files.
This commit is contained in:
Miroslav Šedivý
2026-10-16 20:23:56 +02:00
parent ff6dd395c9
commit 3191dbb058
29 changed files with 97 additions and 2679 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
# neko client
The web client for [neko](https://github.com/m1k1o/neko): React 19 + TypeScript, built with Vite.
It speaks only the v3 API (`/api/ws` + REST), so it works with `NEKO_LEGACY=false`.
It speaks only the v3 API (`/api/ws` + REST).
```
client/
@@ -248,10 +248,10 @@ NEKO_URL=http://localhost:3000 npm run dev
`e2e.mjs` drives two (or more) headless Chromium users through login, video, chat, control, files,
admin actions, reconnects and URL parameters. It needs a disposable server (it takes control, types
into the desktop and kicks users) with the legacy API off and the multiuser provider:
into the desktop and kicks users) with the multiuser provider:
```sh
docker run -d -p 8080:8080 -p 52000:52000/udp -e NEKO_LEGACY=false \
docker run -d -p 8080:8080 -p 52000:52000/udp \
-e NEKO_MEMBER_PROVIDER=multiuser -e NEKO_MEMBER_MULTIUSER_USER_PASSWORD=neko \
-e NEKO_MEMBER_MULTIUSER_ADMIN_PASSWORD=admin -e NEKO_FILETRANSFER_ENABLED=true \
-e NEKO_WEBRTC_UDPMUX=52000 \
+1 -1
View File
@@ -1,5 +1,5 @@
import { chromium } from 'playwright'
// Two-user smoke test against a running v3 server (NEKO_LEGACY=false, multiuser provider):
// Two-user smoke test against a running v3 server with the multiuser provider:
// NEKO_URL=https://host/ NEKO_ADMIN_PASSWORD=admin NEKO_USER_PASSWORD=neko npm run test:e2e
// Screenshots land in ./e2e-out. Needs a KDE/X desktop that opens KRunner on Alt+F2 for the typing step.
import fs from 'node:fs'