Re: [ServiceWorker] Clients & postMessage (#609)

Hah, I had the same thought. Does anyone implement `BroadcastChannel` yet?

Even with `BroadcastChannel`, there's going to be asymmetry in messaging. You can use it to broadcast to multiple windows/workers, but due to the way ServiceWorker terminates when not in use, you'll need to use something like `navigator.serviceWorker.controller.postMessage` to reliably talk back.

I take it you're dead against `WindowClient` (as a worker-friendly `WindowProxy`) posting to `window.onmessage`?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/609#issuecomment-71008020

Received on Thursday, 22 January 2015 11:37:46 UTC