- From: Jungkee Song <notifications@github.com>
- Date: Tue, 14 Apr 2015 23:38:25 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 15 April 2015 06:38:55 UTC
@jrburke I'm not saying the existing case should be replaced as such, but just curious to know for reasoning. Assuming we have `ClientMessageEvent` that has `waitUntil()` (https://github.com/slightlyoff/ServiceWorker/issues/669#issuecomment-88860069), can the logic in the shared worker also be written with a service worker? In that, the client code will do `navigator.serviceWorker.register("email-worker.js")` and use `registration.active.postMessage()` instead of creating a shared worker. And the email worker can use `e.waitUntil(p)` in the event listener of the `message` event. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/678#issuecomment-93219255
Received on Wednesday, 15 April 2015 06:38:55 UTC