Interface IMembershipManagerInternal

This interface defines what a MembershipManager uses and exposes. This interface is what we use to write tests and allows to change the actual implementation Without breaking tests because of some internal method renaming.

interface IMembershipManager {
    getActiveFocus(): undefined | Focus;
    isJoined(): boolean;
    join(fociPreferred: Focus[], fociActive?: Focus): void;
    leave(timeout: undefined | number): Promise<boolean>;
    onRTCSessionMemberUpdate(memberships: CallMembership[]): Promise<void>;
}

Methods