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}`)
A callback that returns the location of the required web assembly file.
Generated using TypeDoc
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:
For NodeJS, the easiest implementation is: