Skip to main content
This section provides a detailed reference for all functions, methods, configuration options, and types available in the Cognigy Click To Call SDK.

Factory Functions

FunctionDescription
createWebRTCClientCreates and returns a new WebRTCClient instance.
checkWebRTCSupportChecks whether the current browser supports Click To Call.

Connection Methods

MethodDescription
connectConnects to the SIP server and registers the client.
disconnectDisconnects from the SIP server.
connectAndCallConnects and starts a call in one operation.

Call Control Methods

MethodDescription
startCallStarts a new voice call.
endCallEnds the current active call.
muteMutes the local microphone.
unmuteUnmutes the local microphone.
sendInfoSends an info message during a call.

State Methods

MethodDescription
isConnectedChecks if the client is connected and registered.
getCurrentSessionReturns the current active call session.

Event Methods

MethodDescription
onAdds an event listener.
offRemoves an event listener.

Cleanup Methods

MethodDescription
destroyDisconnects, ends calls, and releases all resources.

Types

TypeDescription
TypesWebRTCClientConfig, CallSession, SessionStatus, CallEndInfo, WebRTCClientEvents.