[slightlyoff/ServiceWorker] Firing an event when service worker wakes up (#928)

As far as I know, ServiceWorker will fall into *sleep state* when there is no other task to handle. That means all the data stored in memory will be wiped out at that time. I'm thinking about reinitializing that data every time ServiceWorker wakes up. May be something like this:

self.onwakeup = () => reinitializeInmemoryData();

---
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/928

Received on Thursday, 14 July 2016 08:24:32 UTC