browserify/webworkify

Does this work for Shared Web Workers?

brandonros opened this issue · 5 comments

My testing would show no...

Would you mind sharing your testing? - What'd you run?

I actually just forked this and added a switch for creating a new SharedWorker. I'm in the midst of writing some tests to prove it, but i've got a shared worker instance back from the call to work so far...

image

@toddself I wasn't able to debug it or get it to work, then I realized near 0 browsers support it.

Chrome and Firefox have full support.

Although a service worker might make more sense tbh

On Jun 9, 2016, at 12:09, Brandon Ros notifications@github.com wrote:

@toddself I wasn't able to debug it or get it to work, then I realized near 0 browsers support it.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

If you do webworkify(fn, {bare: true}), it returns a bare blob instead of a Worker instance, so you can in theory create any kind of worker with it.