Interacting with the application

Open a terminal instance in the /parallel-wasm directory and run the following command:

serve -l 8080 src

If you navigate to http://127.0.0.1:8080/index.html in your browser, you should see this:

Wasm Workers application running in the browser

Try changing the values in the First Value and Second Value inputs and pressing the Add and Subtract buttons. The Result input should update with the calculated result. If you navigate to http://127.0.0.1:8080/index.html?blob=true, the URL argument passed to the Worker() constructor will use a Blob instead of the filename. The tab should change to reflect that the Blob technique is used to construct the URL:

Tab title updated to reflect the Blob URL technique

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset