MediaSFU React Native
    Preparing search index...

    Variable userWaitingConst

    userWaiting: (
        { name, showAlert, totalReqWait, updateTotalReqWait, }: UserWaitingOptions,
    ) => Promise<void>

    Handles a participant joining the waiting room by notifying the UI and bumping the pending total.

    Type Declaration

      • (
            { name, showAlert, totalReqWait, updateTotalReqWait, }: UserWaitingOptions,
        ): Promise<void>
      • Parameters

        Returns Promise<void>

        Resolves after state updates complete.

    await userWaiting({
    name: 'Ada',
    totalReqWait: 2,
    updateTotalReqWait: setTotalReqWait,
    showAlert: ({ message }) => console.log(message),
    });