honestly just guess what it does. You're probably right.

configurable WebSocket endpoint and opt-in CORS

The webapp gets a Server settings card with a persisted custom WebSocket endpoint. Empty keeps this page's own server; a bare host:port (e.g. localhost:12345, Intiface Central's default) or a full ws:// or wss:// URL is used verbatim, so the page works against any buttplug server without tsbridge in the middle. Switching endpoints tears the current client down (its shutdown stops all toys first) and reconnects; buttplug client event handlers now ignore stale clients so a replaced client's late disconnect cannot schedule reconnects or clear the new connection's registry. tsbridge gains SetCORS(bool), off by default, applied per request so the toggle also affects a running server. When enabled, the request Origin is reflected on every response — including WebSocket upgrade handshakes, which browsers do not preflight — so web apps hosted on other origins can connect; credentials are never granted, Vary: Origin guards caches, and preflight answers carry a deliberately short Access-Control-Max-Age (300 s) because the toggle is user-facing. The desktop runner exposes it as -cors; the Android settings screen as an "Allow other web pages (CORS)" switch that is pushed into the Go singleton on service start. Regenerated app/libs/tsbridge.aar and its sources jar for the new binding.


Author thoth.ptnote.dev
Date Commit Parent 6c3e9f38 Change ID
+402 -12
13 changed files
+402 -12
13 changed files