W3cubDocs

/Haxe JavaScript

PushEvent

package js.html.push

extends ExtendableEventEvent

Available on js

The PushEvent interface of the Push API represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.

Documentation PushEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, ?eventInitDict:Null<PushEventInit>)

Throws:

null

DOMError

Variables

read onlydata:PushMessageData

Returns a reference to a PushMessageData object containing data sent to the PushSubscription.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/push/PushEvent.html