Helper classes for working with Service Workers.
npm install @lumjs/service-workerHelper classes for working with Service Workers.
This package is still in development, and does not have a stable API yet.
A class for use inside a Service Worker context. Provides a few simplistic
methods and sub-classes for handling caches and a few other features.
A class for use in a browser window to register, active, and commuicate with
a Service Worker.
Returns the context class if loaded in a Service Worker,
or the window class if loaded in a browser window.
If the current JS context is neither a window or a service worker,
(e.g. called directly from node.js) an error object will be returned.
This library can be found in two places:
Timothy Totten <2010@totten.ca>