mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
4306da474b2cd00c56a71e98e51cd67c9d0b87af
Bounds the connector's initial connect/login wait with a 15s timeout (an unreachable host previously hung forever with no error), rewrites tsclientlib's Debug-formatted errors into plain text, and adds a connecting/error UI state in the frontend with a dismissible banner instead of burying failures in the bottom log. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TS Web Client
Browser-based client for TeamSpeak servers — same idea as the native installable client, but running in a web browser. The TeamSpeak server side stays exactly as-is (a regular TS server); only the client is being reimagined.
Status: private prototype, not for production use.
Features
- Connect to a real TeamSpeak (3/6) server
- Channel/client tree with correct ordering, click to switch channels
- Text chat: channel, server-wide, and private (1:1) — each in its own tab
- Voice with voice activation ("Sprachaktivierung", not push-to-talk), adjustable sensitivity, and per-client speaking indicators
- Audio output device picker (routes playback to a chosen device) — works in
Chrome/Edge and Firefox 130+; playback is routed through a hidden
<audio>element so device switching works even in browsers withoutAudioContext.setSinkId - Light/dark theme
Architecture
Browsers can't send raw UDP, which is what TeamSpeak's native protocol runs over, so a pure client-side implementation isn't possible — a server-side gateway is required that speaks the real TS protocol on one side and WebSocket to the browser on the other.
Browser (web/) <--WebSocket--> Gateway (gateway/) <--stdin/stdout JSON--> Rust connector (connector/) <--TS3/TS6 protocol--> TeamSpeak Server
web/— Vite + React frontend. TS3-lookalike UI: channel tree, chat tabs, voice controls.gateway/— Node.js/TypeScript WebSocket server. Spawns the Rust connector per browser connection and relays newline-delimited JSON events between it and the browser.connector/— Rust binary wrappingtsclientlib(vendored as a git submodule intsclientlib/), the actual TS3/TS6 protocol implementation. Handles connecting, channel/client state, chat, and Opus-encoded voice.
Installation
See INSTALL.md.
Languages
TypeScript
74.6%
Rust
12.6%
CSS
10.6%
JavaScript
1%
Python
0.6%
Other
0.5%