Search
Try Notion
☁️☁️
Service Workers
Service Workers are event driven workers that gives bunch of API’s to play along. Using Service Worker we can store the message to push when a certain client is online! It have a ability to manipulate behavior of caching the data.
Events That Service Workers Provides :
Install → Where a service worker is initialize into main Web App.
Activate → Add some logic into worker
Message → Service Worker can also receive data from other scripts or webhooks using message event!
Functional Events That Service Workers Provides :
Fetch → To get data from a service worker we can use fetch function to get it!
Sync → To listen towards service worker continuously we can use Sync function!
Push → Using Push function we can push notification to users even if they are offline!
For reference :