Give Notification on window when new data arrived
window.Notification Allows you to send notification on the desktop once the permission is given. Also give a function to ask for permission and mush more, to know more go to
you can add event listners like show, close, click and error to your notification variable to perform custom actions and prevent default