Hi devs! I'm using LiveKit Cloud and want to preve...
# server-api
l
Hi devs! I'm using LiveKit Cloud and want to prevent participants from joining non-existent rooms. My goal: • Host clicks "Create Room" → room is created. • Participant clicks "Join Room" → only joins if the room exists. • Prevent auto room creation when
roomCreate: false
. Issue: Even with
roomCreate: false
, participants still auto-create rooms on join. Also, there's no way to check if a room already exists since
RoomServiceClient
isn’t available on Cloud. Right now I’m tracking room names manually on the backend. Is there a better way to handle this on LiveKit Cloud? Thanks!
l
Hi! What do you mean by
RoomServiceClient
is not available on Cloud? You can use List Room API to know whether a room exists or not
t
I've just run into this same issue -- a participant who has
roomCreate: false
still auto-creates a room on connecting (to livekit cloud).
It's problematic because I'm implementing a moderated room. The moderator can end the session and delete the room but the participant can reconnect and the room is recreated!
t
Hi! You would have to disable this project level setting
Automatically create rooms on participant join
on the setting page and then
roomCreate
should take precedence
🙏 1
t
Ooh nice, thanks! I completely missed those settings.