Returns the compiled WebAssembly.Module for the perspective-js client
runtime. The module is structured-cloneable, so it can be sent via
postMessage to a Worker which can instantiate its own Client without
re-fetching or re-compiling the wasm binary.
Requires that the client wasm has been initialized — typically by a prior
call to init_client(...), or implicitly by mounting a <perspective-viewer>
element. Throws otherwise.
Returns the compiled
WebAssembly.Modulefor the perspective-js client runtime. The module is structured-cloneable, so it can be sent viapostMessageto a Worker which can instantiate its ownClientwithout re-fetching or re-compiling the wasm binary.Requires that the client wasm has been initialized — typically by a prior call to
init_client(...), or implicitly by mounting a<perspective-viewer>element. Throws otherwise.Examples