Handles the event when a person joins.

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)