Skip to main content
Emitted when an asynchronous error occurs during the SDK lifecycle, such as a SIP registration failure, audio playback error, or call error.
Errors thrown by async methods like connect() and startCall() can also be caught using try/catch. The error event captures asynchronous errors that occur outside of direct method calls.

Category

Error

Callback Parameters

ParameterTypeDescription
errorErrorThe error object with a descriptive message property

Example

client.on('error', (error) => {
  console.error('Click To Call SDK error:', error.message);
});

More Information