Esta página ainda não está disponível em Português, por isso está a ler a versão em inglês.

Comlink

Makes Web Workers feel like local objects by turning postMessage into simple function calls.

Makes Web Workers feel like local objects by turning postMessage into simple function calls. Keeps heavy work off the main thread.

When to use it

Your PWA does heavy processing (parsing, image work, search indexes) and needs to stay responsive.

Get started

npm i comlink

Source code, issues and documentation: github.com/GoogleChromeLabs/comlink.