- From: Jungkee Song <notifications@github.com>
- Date: Thu, 18 Dec 2014 22:02:58 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Friday, 19 December 2014 06:03:24 UTC
Made the `postMessage` run a worker, if not running: 591dd3ac740c630fe4dd1ccfa2c1046ce03ae1e9. > This is why I mentioned several times that you need an intermediate place where you queue all these messages, that can then be dispatched when the service worker wakes up. The above commit makes scripts (not the user agent) trigger starting up the SW, but it should be fine as scripts can already generate fetch events (xhr request, etc.) anyway. If we queue the events, `postMessage` would not guarantee the messaging happens at the right time the client requested. WDYT? --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/479#issuecomment-67601738
Received on Friday, 19 December 2014 06:03:24 UTC