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

Support web workers #36

Open
danielcommesse opened this issue Jul 16, 2024 · 1 comment
Open

Support web workers #36

danielcommesse opened this issue Jul 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@danielcommesse
Copy link

danielcommesse commented Jul 16, 2024

Environment

macOS
Firefox & Chrome
node v22.1.0
npm 10.7.0
vite v5.3.3

Reproduction

Not available.

Describe the bug

I am using this library https://github.com/antelle/argon2-browser, and I managed to use it without troubles through unwasm, however I recently tried to load it within a web worker, and it doesn't work, basically, it loads the library as an object, but with functions as strings. I've tried a lot of things and can't get it to work within a web worker.

In the description of the package it is not clear how to use it within a web worker.

I am not sure if this is actually a bug.

Any help would be appreciated.

Additional context

No response

Logs

No response

@danielcommesse danielcommesse added the bug Something isn't working label Jul 16, 2024
@pi0
Copy link
Member

pi0 commented Jul 16, 2024

Hi. Web targets (also worker/server-workers) are not supported yet by unwasm but it is on the plan.

@pi0 pi0 changed the title Usage within a web worker Support web workers Jul 16, 2024
@pi0 pi0 added enhancement New feature or request and removed bug Something isn't working labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants