How do I set timeout for entire livekit session? I...
# ask-ai
n
How do I set timeout for entire livekit session? I want session to run 15 minutes max.
t
Thanks for reaching out, Nikhil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you want to hard-limit a room so it ends after 15 minutes. LiveKit doesn’t have a built-in “max active duration” flag, but you can enforce it server-side: • Start a timer when you create the room or when the first participant joins. • After 15 minutes, call the RoomService DeleteRoom API to end the session; this disconnects everyone immediately. Notes: •
empty_timeout
only controls how long an empty room stays open, not an active session. • Short token expirations won’t kick out already-connected participants. If you’d like, tell me which server SDK you use (Node, Go, Python, etc.) and I’ll share a short DeleteRoom snippet. For reference: Managing rooms. Sources: Core Platform Architecture & Authentication | livekit/livekit_composite | D... | Authentication | LiveKit Docs | Managing rooms | LiveKit docs
n
I am using pything sdk
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!