lively-terabyte-73999
09/02/2025, 5:23 PMtall-airline-16756
09/02/2025, 5:23 PMtall-airline-16756
09/02/2025, 5:24 PMlively-terabyte-73999
09/02/2025, 5:25 PMtall-airline-16756
09/02/2025, 5:25 PMlively-terabyte-73999
09/02/2025, 5:25 PMtall-airline-16756
09/02/2025, 5:25 PMlively-terabyte-73999
09/02/2025, 5:31 PMtall-airline-16756
09/02/2025, 5:32 PM@livekit/client-sdk package to run connection checks right in your app. This helps you test WebRTC, WebSocket, and TURN server connectivity automatically.
If you want a quick and easy fix, the web tool is your best bet. And hey, if you need a hand generating a Room Token or getting the SDK set up, just give me a shout—I’m here to help!
Sources: LiveKit Connection Tester | Running LiveKit on AWS | Diagnosing Connection Errors with Connection Test Utilitylively-terabyte-73999
09/02/2025, 5:32 PMtall-airline-16756
09/02/2025, 5:33 PM@livekit/client-sdk, here’s a simple step-by-step guide to get you started:
1. Install the SDK: Just run this command to get the package installed:
npm install @livekit/client-sdk
2. Set Up the Test: Use this handy code snippet to check your connection:
import { ConnectionCheck } from '@livekit/client-sdk';
const checker = new ConnectionCheck({
url: 'your-project-url',
token: 'your-token'
});
const websocketResult = await checker.checkWebsocket();
const webrtcResult = await checker.checkWebRTC();
const turnResult = await checker.checkTURN();
console.log('WebSocket:', websocketResult);
console.log('WebRTC:', webrtcResult);
console.log('TURN:', turnResult);
3. Run Specific Tests: Feel free to use checkWebRTC(), checkWebsocket(), and checkTURN() methods to test different parts of your connection.
Just remember to swap out 'your-project-url' with your actual LiveKit server URL and 'your-token' with a valid Room Token. If you’d like, I’m here to help you generate that token or get your environment set up—just let me know!lively-terabyte-73999
09/02/2025, 5:34 PMtall-airline-16756
09/02/2025, 5:34 PM@livekit/client-sdk, or you can easily try it out using the standalone web tool right here: https://livekit.io/connection-test.
Now, while the server SDKs do have integration tests to check connection behavior, they don’t include the full Connection Test utility. If you have any questions or want me to walk you through anything, just let me know—I’m here to help!
Sources: Diagnosing Connection Errors with Connection Test Utility | src/connectionHelper/checks/Checker.ts | integration_test.go | livekit-server/templates/tests/test-connection.yaml