Checks whether the current browser supports Click To Call. Call this function before creating a client to verify that all required browser APIs are available.
Signature
import { checkWebRTCSupport } from '@cognigy/click-to-call-sdk';
const support = checkWebRTCSupport();
Parameters
None.
Returns
{ supported: boolean; missing: string[] }
| Property | Type | Description |
|---|
supported | boolean | true if the browser supports all required WebRTC APIs. |
missing | string[] | List of missing browser features, if any. |
Example
import { checkWebRTCSupport } from '@cognigy/click-to-call-sdk';
const support = checkWebRTCSupport();
if (!support.supported) {
console.error('WebRTC not supported. Missing features:', support.missing);
} else {
console.log('WebRTC is supported — ready to create a client');
}
Last modified on June 2, 2026