Re: [slightlyoff/ServiceWorker] consider allowing multiple worker thread instances for a single registration (#756)

@adamvy 

>We would like to use global state for service workers. In my ideal world a service worker would be alive as long as and page accessing it is alive.
>
> In developing mail clients, chat clients, and any app that has a more than trivial data layer, it's ideal to have a single source of truth for the data layer of the application.

I think what you want already exists - `SharedWorker`. This is designed to stay alive while clients have a reference to it, whereas service worker terminates to save resources. Like @wanderview says, we need to tweak the spec of `SharedWorker` to allow them to exist in service workers.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/756#issuecomment-238014828

Received on Saturday, 6 August 2016 09:29:36 UTC