fix: use wss:// LiveKit URL in federated call relay, not https://

sendFederatedCallStart was sending `https://${domain}/livekit` as the
LiveKit URL. The LiveKit SDK requires `wss://` for WebSocket connections.
The caller (local) worked because it gets the URL from config.livekit.url
(wss://). The federated acceptor failed because it used the relay URL
(https://) — the SDK can't connect over HTTPS.

Now uses config.livekit.url directly, falling back to wss:// if unset.
This commit is contained in:
Jannis Braun
2026-04-08 14:30:48 +02:00
parent c037803c5a
commit 27514e1596
+4 -1
View File
@@ -1749,7 +1749,10 @@ async function sendFederatedCallStart(
return; return;
} }
const livekitUrl = `https://${config.domain}/livekit`; // Use the configured LiveKit URL (wss://domain/livekit from .env).
// Previously this was `https://${config.domain}/livekit` which fails because
// the LiveKit SDK requires a wss:// WebSocket URL, not https://.
const livekitUrl = config.livekit.url ?? `wss://${config.domain}/livekit`;
// Build participants array (all member identities for Path B) // Build participants array (all member identities for Path B)
const participants = members.map(m => ({ const participants = members.map(m => ({