Browse SDKs · WASM
SDKsWASMEnterprise

Reject a call

Reject a call invitation with the WASM SDK.

Copy

When the user declines an incoming call, pass the complete invitation data received in the event to signalingReject():

await openimsdk.signalingReject({
  opUserID: currentUserID,
  invitation,
});

opUserID is the ID of the current user rejecting the call. Pass the complete SignalingInvitation from the incoming-call event as invitation; do not keep only selected fields such as roomID or the inviter.

Promise completion means only that OpenIMServer has completed the rejection request. The caller subsequently updates its interface through OnInviteeRejected. For the complete handling flow, see Call events.