Skip to main content
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[] }
PropertyTypeDescription
supportedbooleantrue if the browser supports all required WebRTC APIs
missingstring[]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');
}

More Information