MediaSFU React Native
    Preparing search index...

    Function respondToRequests

    • Responds to incoming requests by updating the request list and emitting a response to the server.

      Parameters

      Returns Promise<void>

      A promise that resolves when the response has been emitted.

      respondToRequests({
      socket,
      request: { id: "123", name: "John", icon: "fa-microphone" },
      updateRequestList: setRequestList,
      requestList: currentRequests,
      action: "accept",
      roomName: "mainRoom"
      });