Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.js usage #5

Open
roccomuso opened this issue Feb 27, 2019 · 3 comments
Open

node.js usage #5

roccomuso opened this issue Feb 27, 2019 · 3 comments

Comments

@roccomuso
Copy link

Can you show example usage in Node.js environment?

@mbasso
Copy link
Owner

mbasso commented Mar 17, 2019

Hi @roccomuso,
wasm-worker is primarly designed to work in a browser invironment since it uses fetch and Web Worker APIs. If you want to use it in a NodeJS environment, Web Workers must be polyfilled using a library like node-webworker.
The APIs are the same, it is just about polyfilling these 2 interfaces, or just Web Workers if you are planning to use wasm-worker only with ArrayBuffer sources.

@roccomuso
Copy link
Author

https://github.com/pgriess/node-webworker is 8 years old and not mantained.

@mbasso
Copy link
Owner

mbasso commented Apr 2, 2019

I've also found this one but I've not tried it yet..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants