Description
Make sure that the crossmark extension is installed and connect with the API
💡
This function will automatically be run when the SDK is instantiated. This method should rarely be used. If you need to determine if crossmark exists on your users device, we recommend refer to (isConnected())[/docs/docs-methods/isConnected] or grabbing the status using the window provider.
Usage
await sdk.async.connect(timeout: number)
Parameters
timeout: number; // in milliseconds;
Response
Promise<boolean>;
Example
let isConnected = await sdk.async.connect();
console.log(isConnected);
// true