Service worker’s integration
What is a service worker?
A service worker is a script that your browser runs in the background, separate from a web page, opening the door to features that don’t need a web page or user interaction. Today, they already include features like push notifications and background sync.
Download or clone this git repository https://github.com/RapidCodeLab/gopusher-sw
Change the VAPID Public Key, Publisher’s API Key, Channel, and Events URL in the file to match your data.
Upload app.js & sw.js to your sites, include app.js to your pages.