@perspective-dev/client
    Preparing search index...

    Function getCompiledClientWasm

    • 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.

      Examples

      const mod = await perspective.getCompiledClientWasm();
      worker.postMessage({ kind: "init", clientWasm: mod }, [port]);

      Returns Promise<Module>