Function respondToWaiting

Responds to a participant waiting to join a room by either allowing or denying their entry.

const options = {
participantId: "12345",
participantName: "John Doe",
updateWaitingList: (list) => console.log("Updated Waiting List:", list),
waitingList: [{ id: "12345", name: "John Doe" }],
type: true,
roomName: "room1",
socket: socketInstance,
};
respondToWaiting(options);