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

Fails in Web Worker Environment due to Worker-Timers Dependency #1754

Closed
hibrandonevans opened this issue Dec 5, 2023 · 1 comment · Fixed by #1755
Closed

Fails in Web Worker Environment due to Worker-Timers Dependency #1754

hibrandonevans opened this issue Dec 5, 2023 · 1 comment · Fixed by #1755

Comments

@hibrandonevans
Copy link
Contributor

Issue Description:

I've encountered a bug when using mqtt.js version 5.3.2 in a Web Worker environment. The issue arises due to the worker-timers library dependency utilized in this version of mqtt.js.

Problem Details:

The worker-timers library makes use of the new Worker API, which is not available in the Web Worker environment. As a result, attempting to use mqtt.js 5.3.2 within a Web Worker leads to a failure, with an error indicating the absence of the new Worker API in this context.

image
image
image

@robertsLando
Copy link
Member

Arggg... I'm sorry for that but there is actually no test coverage for workers, I definitely should add one when I have some time and once I found put how! Let me fix this asap 🙏🏻

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

Successfully merging a pull request may close this issue.

2 participants