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) Copy
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)
The options for the person joined event.
A promise that resolves when the alert has been shown.
Handles the event when a person joins.
Example