3.4.0 • Published 7 years ago
client-sw-ready-event v3.4.0
Client Side Service Worker Ready Event
Intended to be used with sw-stream to register a service worker and provide the active service worker on a ready event
Usage
const SWcontroller = require('client-sw-ready-event/lib/sw-client.js')
const SwStream = require('sw-stream/lib/sw-stream.js')
const background = new SWcontroller({
fileName: '/service-worker.js',
// optional
scope: '/',
})
background.on('ready', () => {
let swStream = SwStream({
serviceWorker: background.controller,
})
// do stuff
})
background.startWorker()
3.4.0
7 years ago
3.3.0
7 years ago
3.2.1
7 years ago
3.2.0
7 years ago
3.1.0
7 years ago
3.0.4
7 years ago
3.0.3
7 years ago
3.0.2
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.2.1
7 years ago
2.1.1
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.4.0
7 years ago
1.3.3
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.1.2
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago