ExtendableMessageEvent

package js.html

extends ExtendableEventEvent

Available on js

The ExtendableMessageEvent interface of the ServiceWorker API represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.

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

See also:

Constructor

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

Throws:

null

DOMError

Variables

read onlydata:Dynamic

Returns the event's data. It can be any data type.

read onlylastEventId:String

Represents, in server-sent events, the last event ID of the event source.

read onlyorigin:String

Returns the origin of the ServiceWorkerClient that sent the message

read onlyports:Array<MessagePort>

Returns the array containing the MessagePort objects representing the ports of the associated message channel.

read onlysource:EitherType<Client, EitherType<ServiceWorker, MessagePort>>

Returns a reference to the service worker that sent the message.

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