Factory Functions
| Function | Description |
|---|---|
| createWebRTCClient | Creates and returns a new WebRTCClient instance. |
| checkWebRTCSupport | Checks whether the current browser supports Click To Call. |
Connection Methods
| Method | Description |
|---|---|
| connect | Connects to the SIP server and registers the client. |
| disconnect | Disconnects from the SIP server. |
| connectAndCall | Connects and starts a call in one operation. |
Call Control Methods
State Methods
| Method | Description |
|---|---|
| isConnected | Checks if the client is connected and registered. |
| getCurrentSession | Returns the current active call session. |
Event Methods
Cleanup Methods
| Method | Description |
|---|---|
| destroy | Disconnects, ends calls, and releases all resources. |
Types
| Type | Description |
|---|---|
| Types | WebRTCClientConfig, CallSession, SessionStatus, CallEndInfo, WebRTCClientEvents. |