Skip to main content
Version: v7.4.x

createProxyWorker

@microblink/blinkid


@microblink/blinkid / createProxyWorker

Variable: createProxyWorker()

const createProxyWorker: (resourcesLocation?) => Promise<Remote>

Creates a Comlink-proxied Web Worker

Parameters

resourcesLocation?

string

where the "resources" directory is placed, default is window.location.href

Returns

Promise<Remote>

a Comlink-proxied instance of the Web Worker