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

[Feature Request] Support for Web Workers #4

Open
thematho opened this issue Oct 8, 2019 · 1 comment
Open

[Feature Request] Support for Web Workers #4

thematho opened this issue Oct 8, 2019 · 1 comment

Comments

@thematho
Copy link

thematho commented Oct 8, 2019

Type:
Feature Request [X]

Add support for the watch operator to be called from Web Workers.
Use case, using the library observable-webworker the message reception is being done throw an Observable input$, in this sense inside the Worker we can have the watch operator to see the marvels from the Worker tasks, and debug them easily.

But when I try to use it, the library is using HTMLElements, HTML Events, etc, for which the Worker as no access to it, and then it fails. Maybe we can have a watchWorker alternative to run in a separate worker and communicate with the plugging using messages?

@xripcsu
Copy link
Owner

xripcsu commented Oct 27, 2019

Watch operator uses window.postMessage function which worker has no access to. I think that this is not possible without changes on observable-webworker.

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