ExtendableMessageEventinterface of the
ServiceWorker APIrepresents the event object of a
messageevent fired on a service worker (when a channel message is received on the
ServiceWorkerGlobalScopefrom another context) — extends the lifetime of such events.
new (type:String, ?eventInitDict:ExtendableMessageEventInit)
Returns the event's data. It can be any data type.
read only lastEventId:String
Represents, in server-sent events, the last event ID of the event source.
Returns the origin of the
ServiceWorkerClient that sent the message
read only ports:MessagePortList
Returns the array containing the
MessagePort objects representing the ports of the associated message channel.
read only source:EitherType<Client, EitherType<ServiceWorker, MessagePort>>
Returns a reference to the service worker that sent the message.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.