Skip to main content
updateWaitingParticipants(updates) Use this instead of looping over updateWaitingParticipant().

Parameters

updates
{ [id: string]: DailyWaitingParticipantUpdateOptions }
required
An object whose keys are waiting participant session IDs and whose values are update options. Accepts the special key '*' to apply updates to all waiting participants not otherwise explicitly specified.

Return value

Returns Promise<{ ids: string[] }> — resolves with an array of the updated participants’ IDs.

Examples

// Grant access to all waiting participants
await call.updateWaitingParticipants({
  '*': { grantRequestedAccess: true },
});
// Grant one participant, deny another
await call.updateWaitingParticipants({
  'session-id-1': { grantRequestedAccess: true },
  'session-id-2': { grantRequestedAccess: false },
});
// Deny all except one
await call.updateWaitingParticipants({
  '*': { grantRequestedAccess: false },
  'session-id-1': { grantRequestedAccess: true },
});

See also