Function remoteWorkerURL

  • Returns a blob:// URL which points to a javascript file which will call importScripts with the given URL, to be used for cross-origin workers. https://stackoverflow.com/questions/21913673/execute-web-worker-from-different-origin

    Parameters

    • url: string

      URL to the worker js file

    • Optional wasmURL: string

      optional wasm file URL, will be passed to a created Module.locateFile (for emscripten)

    Returns string