Browse SDKs · WASM
SDKsWASMEnterprise

End a call

End an established call with the WASM SDK.

Copy

After a call is established, a participant can call signalingHungUp(). opUserID is the ID of the current user ending the call. invitation is the complete RtcInvite used for this call, and its roomID must match the active room.

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

Promise completion means only that the hang-up signaling request has completed. The application must also stop local capture, disconnect from the media room, and release the camera and microphone. Cancellation, rejection, timeout, and hang-up should all enter the same idempotent cleanup flow keyed by roomID.