MediaSFU React Native (Expo)
    Preparing search index...

    Function updateParticipantPermission

    • Updates a single participant's permission level. Only hosts (islevel === "2") can update permissions. Cannot change a host's permission level.

      Parameters

      Returns Promise<void>

      await updateParticipantPermission({
      socket,
      participant: { id: "123", name: "John", islevel: "0" },
      newLevel: "1",
      member: "currentUser",
      islevel: "2",
      roomName: "room123",
      showAlert: (alert) => console.log(alert.message),
      });