From looking at this repo I couldn't find what logic is actually interacting with the wasm. I was tracing the flow in main.js and it seems startWasmWorker sends a message to wasmWorker which then updates the canvas using a js function? But I must be missing something here.
If you could point out the wasm-calling logic it would help me to use this as a reference.