Handles a participant's request by adding it to the request list and updating the total count of requests and waiting room participants.
The options for handling the participant's request.
A promise that resolves when the participant's request has been handled.
Service to handle participant requests in an event's waiting room.
Name
ParticipantRequested
Description
Manages participant requests by adding new requests to the list and updating the total count of requests and waiting room participants.
Method
participantRequested
Param: options
Contains request information and update functions:
userRequest
{Request}: The new request from a participant.requestList
{Request[]}: The current list of requests.waitingRoomList
{WaitingRoomParticipant[]}: The list of participants in the waiting room.updateTotalReqWait
{Function}: Function to update the total count of requests and waiting room participants.updateRequestList
{Function}: Function to update the request list.Returns
Updates the request list and total request count.
Example