Class ParticipantRequested

Service to handle participant requests in an event's waiting room.

ParticipantRequested

Manages participant requests by adding new requests to the list and updating the total count of requests and waiting room participants.

participantRequested

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.

Updates the request list and total request count.

const options = {
userRequest: { id: '123', name: 'John Doe', icon: 'fa-user', username: 'johndoe' },
requestList: existingRequests,
waitingRoomList: waitingParticipants,
updateTotalReqWait: (count) => console.log(`Total requests: ${count}`),
updateRequestList: (list) => console.log('Updated request list', list)
};
await participantRequestedService.participantRequested(options);
// Adds "John Doe" to request list and updates the total count.

Constructors

Methods

Constructors

Methods

MMNEPVFCICPMFPCPTTAAATR