Skip to content

Commit

Permalink
timeout docs
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Jan 13, 2025
1 parent 08b9849 commit 0d9208a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/matrixrtc/MembershipManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export interface IMembershipManager {
* If we are trying to join the session.
* It does not reflect if the room state is already configures to represent us being joined.
* It only means that the Manager is running.
* This is determined by checking if the relativeExpiry has been set.
* @returns true if we intend to be participating in the MatrixRTC session
*/
isJoined(): boolean;
Expand All @@ -34,7 +33,9 @@ export interface IMembershipManager {
join(fociPreferred: Focus[], fociActive?: Focus): void;
/**
* Send all necessary events to make this user leave the RTC session.
* @param timeout
* @param timeout the maximum duration in ms until the promise is forced to resolve.
* @returns It resolves with true in case the leave was sent successfully.
* It resolves with false in case we hit the timeout before sending successfully.
*/
leave(timeout: number | undefined): Promise<boolean>;
/**
Expand All @@ -43,7 +44,7 @@ export interface IMembershipManager {
onRTCSessionMemberUpdate(memberships: CallMembership[]): Promise<void>;
/**
* The used active focus in the currently joined session.
* @returns undefined if not joined.
* @returns the used active focus in the currently joined session or undefined if not joined.
*/
getActiveFocus(): Focus | undefined;
}
Expand Down

0 comments on commit 0d9208a

Please sign in to comment.