I want to set the `departureTimeout` to 0. but we ...
# ask-ai
l
I want to set the
departureTimeout
to 0. but we use the
Automatically create rooms on participant join
so we don’t specifically create the room ourselves. Is there a way to configure this session globally across all rooms in the project?
t
Thanks for reaching out, vnandan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can configure the
departureTimeout
globally for all rooms in your LiveKit project by modifying the configuration file. Specifically, you can set the
departure_timeout
parameter under the room configuration section. For example:
Copy code
# number of seconds to keep the room open after everyone leaves
departure_timeout: 0
Setting this value to
0
will apply it globally across all rooms in your project. Let me know if you need further assistance! Sources: GitHub:: LiveKit Composite Repo | livekit/livekit-cli/cmd/lk/room.go
l
how to set it up in livekit cloud
t
Hey there! I totally understand your confusion about the
departureTimeout
in LiveKit Cloud. It's not as straightforward as you might hope. Right now, this setting is something you'd typically set when you're creating a room programmatically through the
CreateOptions
. But I know that might not be super helpful if you're using the "Automatically create rooms on participant join" feature. Unfortunately, LiveKit Cloud doesn't have a one-click global setting for
departureTimeout
at the moment. I know that can be frustrating! If this is really important for your project, I'd be happy to brainstorm some potential workarounds or connect you with someone who might have more specific solutions. Want to chat more about it? I'm here to help! Sources: CreateOptions | LiveKit JS Server SDK - v2.9.7