andywer / andywer/threads.js

Using onMessage and postMessage in a worker and main thread

Open
#322 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
3.5k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

Hello, please provide an example of using onMessage and postMessage from both the worker side and the main thread side using Typescript. The object returned from **spawn** doesn't seem to include those methods and I dont see how to call them from within **expose** as well.

Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.