I have a Kotlin/Wasm client app. To introduce Live...
# ask-ai
b
I have a Kotlin/Wasm client app. To introduce LiveKit, which SDK can I use?
✅ 1
t
Thanks for reaching out, toshi. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're asking which LiveKit SDK to use for a Kotlin/Wasm client app. Good question. Short answer: • There is no dedicated Kotlin/Wasm SDK. Use the LiveKit JavaScript SDK (the web SDK) from your Kotlin/Wasm app via Kotlin/JS (JavaScript interop). If you’d like, I can: 1. Walk through the high-level steps to call the LiveKit JS SDK from Kotlin/JS (importing the JS package, instantiating a Room/LocalTrack, handling events). 2. Provide a small example of Kotlin/JS interop code that calls the JS SDK (or show the equivalent JS snippets you can translate). 3. Help with build/tooling tips for Kotlin/Wasm (Gradle setup, packaging) if you share your current build setup. Which would you prefer me to do next — a concise example of interop code, or step-by-step integration guidance for your specific project setup? , with interactive elements
b
How about client-sdk-cpp? Can it be compiled to WebAssembly to connect LiveKit?
t
Thanks — I’m responding to your question about whether the LiveKit C++ client SDK (
client-sdk-cpp
) can be compiled to WebAssembly to use from a Kotlin/Wasm client. Short answer: • The C++ client SDK is not intended to be built for WebAssembly. It depends on native platform APIs and doesn’t include Emscripten/WebAssembly build support. • For web/Wasm clients, the supported route is to use the LiveKit JavaScript (web) SDK and call it from your Kotlin/Wasm code via JavaScript interop. What you can do next (I can help with any of these): • I can give a concise Kotlin/JS interop example showing how to import and call the LiveKit JS SDK (connect to a Room, create tracks, handle events). • I can outline the high-level steps to integrate the JS SDK into a Kotlin/Wasm build (package/import, Gradle setup hints, bundling). • If you prefer, I can show equivalent JavaScript snippets you can translate into Kotlin/JS interop. Which would be most useful for you right now? , with interactive elements