Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions packages/livekit-server-sdk/src/RoomServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@ export interface CreateOptions {
name: string;

/**
* number of seconds to keep the room open before any participant joins
* Number of seconds to keep the room open when empty.
*
* Before any participant joins, the room will close after this timeout.
* After all participants leave, the countdown restarts. If a new participant
* joins before it elapses, the timer resets and the room stays open.
*/
emptyTimeout?: number;

/**
* number of seconds to keep the room open after the last participant leaves
* this option is helpful to give a grace period for participants to re-join
* Number of seconds to keep the room open after the last participant leaves.
*
* This provides a grace period for participants to re-join (e.g. after a
* brief disconnection) without the room being closed and recreated.
*/
departureTimeout?: number;

Expand Down
Loading