Service to handle updating the list and count of waiting room participants.
AllWaitingRoomMembers
This service updates the waiting room participants list and the total count of participants waiting to join.
allWaitingRoomMembers
The options for updating the waiting room data.
An array of participants currently in the waiting room.
Function to update the waiting room participants list.
Function to update the total count of waiting room participants.
A promise that resolves when the updates to the waiting room data are complete.
const allWaitingRoomMembersService = new AllWaitingRoomMembers();await allWaitingRoomMembersService.allWaitingRoomMembers({ waitingParticipants: [{ name: 'John Doe', isApproved: false }], updateWaitingRoomList: (participants) => console.log(participants), updateTotalReqWait: (total) => console.log(`Total requests: ${total}`)}); Copy
const allWaitingRoomMembersService = new AllWaitingRoomMembers();await allWaitingRoomMembersService.allWaitingRoomMembers({ waitingParticipants: [{ name: 'John Doe', isApproved: false }], updateWaitingRoomList: (participants) => console.log(participants), updateTotalReqWait: (total) => console.log(`Total requests: ${total}`)});
Updates the waiting room participants list and the total count of waiting room participants.
The options object.
A promise that resolves when the updates are complete.
Service to handle updating the list and count of waiting room participants.
Name
AllWaitingRoomMembers
Description
This service updates the waiting room participants list and the total count of participants waiting to join.
Method
Async
Name
allWaitingRoomMembers
Param: options
The options for updating the waiting room data.
Param: options.waitingParticipants
An array of participants currently in the waiting room.
Param: options.updateWaitingRoomList
Function to update the waiting room participants list.
Param: options.updateTotalReqWait
Function to update the total count of waiting room participants.
Returns
A promise that resolves when the updates to the waiting room data are complete.
Example