Adds a participant to the panelist list. Respects the maximum panelist limit.
Options for adding a panelist.
True if added successfully, false otherwise.
const success = await addPanelist({ socket, participant: { id: "123", name: "John" }, currentPanelists: [], maxPanelists: 10, roomName: "room123", member: "currentUser", islevel: "2", showAlert: (alert) => console.log(alert.message),}); Copy
const success = await addPanelist({ socket, participant: { id: "123", name: "John" }, currentPanelists: [], maxPanelists: 10, roomName: "room123", member: "currentUser", islevel: "2", showAlert: (alert) => console.log(alert.message),});
Adds a participant to the panelist list. Respects the maximum panelist limit.