abundant-father-33863
10/30/2025, 9:13 AMtall-airline-16756
10/30/2025, 9:13 AMtall-airline-16756
10/30/2025, 9:14 AMLIVEKIT_URL environment variable or wsURL option uses the wss:// scheme to ensure secure connections.
• Check that your apiKey, apiSecret, and wsURL are all correctly set—sometimes missing or incorrect tokens can cause handshake failures.
If you’re still running into issues, a handy next step is to test endpoint reachability using a tool like wscat. Also, take a look at your logs for any specific error codes (like 401 or 404) which can give clues about authentication or routing problems. I’m here to help you through this, so please don’t hesitate to ask if you need more guidance!
Sources: Deploying to custom environments | LiveKit Docs | Server-Side SDKs & Authentication | livekit/livekit_composite | DeepWiki | SIP troubleshooting guide | LiveKit Docs | livekit-agents/livekit/agents/inference/stt.py | README.mdabundant-father-33863
10/30/2025, 9:34 AMtall-airline-16756
10/30/2025, 9:34 AMwss:// for secure connections. Sometimes, insecure ws:// URLs can get rejected, so this is an important detail.
6. Firewall and Network Configuration: Check that your firewalls or proxies aren’t blocking WebSocket traffic on port 443 (or any custom ports you might be using).
7. Check SDK-Server Compatibility: It’s a good idea to verify that your client SDK version aligns with your LiveKit server version to avoid any compatibility issues.
If you’re still facing challenges after these steps, consider testing endpoint reachability with tools like wscat and take a look at your client-side error logs—they often hold clues that can help us pinpoint what’s going on.
Feel free to reach out if you need any more guidance—I’m here to help!
Sources: src/connectionHelper/checks/websocket.ts | Diagnosing Connection Errors with Connection Test Utility | Running LiveKit on AWS | Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki