Hiyve Components - v1.0.0
    Preparing search index...

    Interface WaitingRoomState

    Waiting room state for managing users waiting to join.

    Contains the list of users waiting to be admitted. Only the room owner can see and manage this list.

    Waiting room notification:

    function WaitingRoomNotification() {
    const { waitingUsers } = useWaitingRoom();
    const { isOwner } = useRoom();

    if (!isOwner || waitingUsers.length === 0) return null;

    return (
    <div className="notification">
    {waitingUsers.length} user(s) waiting to join
    </div>
    );
    }
    interface WaitingRoomState {
        isWaitingForAdmission: boolean;
        waitingUsers: WaitingRoomUser[];
        wasRejected: boolean;
    }
    Index

    Properties

    isWaitingForAdmission: boolean

    Whether the local user is waiting to be admitted by the host (for guests)

    waitingUsers: WaitingRoomUser[]

    Array of users waiting to be admitted (for hosts)

    wasRejected: boolean

    Whether the local user was rejected from the waiting room