• This function is used to load a Web Assembly file that SudoAdTrackerBlockerClient depends on, and must be called one time during application startup.

    For browser, the easiest implementation is:

    initWasm((file) => `/fetch-path-of-wasm-file-in-website/${file}`)
    

    For NodeJS, the easiest implementation is:

    initWasm((file) => fs.readFile(
    `./node_modules/@sudoplatform/ad-tracker-blocker/wasm/${file}`
    )

    Parameters

    Returns Promise<void>

Generated using TypeDoc