@fluencelabs/avm-worker-web
v0.2.0
Published
AVM Worker implementation with web workers
Downloads
11
Keywords
Readme
AVM Worker implementation for browsers
AVM Worker is the abstraction over Aqua virtual machine (AVM) interpreter designed to allow run it in different contexts such as web workers in browsers or worker threads on nodejs.
The package provides implementation for browsers based on web workers.
Usage
To use BackgroundWorker
with Fluence JS refer to the official documentation
Building
First you need to build the worker script:
./build_worker.sh
Then build the npm package:
npm install
npm run build
Running tests
The browser tests are run with puppeteer to insure they are executed in the same environment as browser itself
First, build the avm-worker-web (see Building)
Go to the test project:
cd ../avm-worker-web-test
Build the browser script with the tests:
./build_browser_script.sh
Run the tests:
npm install
npm run test