MediaSFU React Native
    Preparing search index...

    Function personJoined

    • Handles the event when a person joins.

      Parameters

      Returns Promise<void>

      A promise that resolves when the alert has been shown.

      const options = {
      name: "Alice",
      showAlert: ({ message, type, duration }) => console.log(message, type, duration),
      };

      await personJoined(options);
      // Output: "Alice joined the event." (Displayed as a success alert for 3000 ms)