MediaSFU Shared
    Preparing search index...

    Function userWaiting

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

      Parameters

      • options: UserWaitingOptions

        Waiting-room notification settings.

        • name: string
        • OptionalshowAlert?: ShowAlert
        • totalReqWait: number
        • updateTotalReqWait: (total: number) => void

      Returns Promise<void>

      Resolves after state updates complete.

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