empty timeout vs departure timeout in room.create_...
# ask-ai
k
empty timeout vs departure timeout in room.create_room
t
Thanks for reaching out, Ethan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just wanted to explain the empty_timeout and departure_timeout settings in `room.create_room`—they each do something a bit different: • empty_timeout: This is how many seconds the room will stay open if no one joins right after it’s created. If nobody pops in during this time, the room will close automatically. • departure_timeout: This one sets how many seconds the room stays open after everyone has left. It’s handy because it gives folks a chance to come back without losing anything. If no one returns by then, the room closes. Both of these are counted in seconds and help keep things running smoothly on the server side. Hope that clears things up! Sources: livekit-protocol/src/livekit.rs | livekit/livekit_models.pb.go | cmd/lk/room.go | packages/livekit-server-sdk/src/RoomServiceClient.ts