The push
event is fired to indicate that a Service Worker has received a push message.
PushEvent
PushMessageData
object.self.addEventListener('push', function(event) { var obj = event.data.json(); port.postMessage(obj); });
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/push