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 original invitation to signalingReject():

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

opUserID is the current user performing the rejection. invitation must retain the complete original call information.

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.