steep-balloon-41261
05/14/2023, 4:27 AMdry-elephant-14928
05/14/2023, 5:12 AMnodejs
server is different from livekit-server. There are three components here:
⢠livekit client SDK
⢠livekit server (runs on port 7880)
⢠your backend server (NodeJS)
Both livekit client SDK and your backend server should point to livekit-server at port 7880busy-lawyer-20958
05/14/2023, 5:43 AMdry-elephant-14928
05/14/2023, 6:18 AMbusy-lawyer-20958
05/14/2023, 6:29 AMdry-elephant-14928
05/14/2023, 6:32 AMdry-elephant-14928
05/14/2023, 6:33 AMdry-elephant-14928
05/14/2023, 6:34 AMbusy-lawyer-20958
05/14/2023, 6:40 AMawait room.connect('<ws://localhost:3000>', 'userToken');
or here: await room.prepareConnection(wssUrl.value);
Do I use the cloud livekit url? Do I add a port?
wss://myproject.livekit.cloud
Let me share my server code just in case:https://codeshare.io/gLgJqV
Also, you realllllly need to make the docs open source. There are lot of stuff I want to fix and make more readable. LiveKit is opensource why not the docs?dry-elephant-14928
05/14/2023, 6:42 AM<wss://myproject.livekit.cloud>
would be the server URL that you put into room.connect
. You do not need to add a port. By default it'll use the standard HTTPS port (443)dry-elephant-14928
05/14/2023, 6:43 AMbusy-lawyer-20958
05/14/2023, 6:46 AMdry-elephant-14928
05/14/2023, 6:49 AM