Docs
synchronous
isConnected

Description

Make sure that the crossmark extension is installed and connect with the API

💡

In certain circumstances, this method might return false even if the extension is installed. It is recommended to use the connect method with an approprate timeout before calling this method.


Usage

sdk.isConnected(timeout: number)

Parameters

timeout: number;

Response

boolean;

Example

let isConnected = sdk.isConnected();
 
console.log(isConnected);
// true