The ExtendableMessageEvent interface of the ServiceWorker API
the event object of a message event fired on a service worker
a channel message is received on the web.workers.ServiceWorkerGlobalScope
another context) — extends the lifetime of such events.
The ExtendableMessageEvent interface of the `ServiceWorker API` the event object of a message event fired on a service worker a channel message is received on the `web.workers.ServiceWorkerGlobalScope` another context) — extends the lifetime of such events.
(data this)
Property.
[Read Only]
The data read-only property of the web.service-workers.ExtendableMessageEvent
returns the event's data. It can be any data type.
var myData = ExtendableMessageEventInstance.data;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/data
Property. [Read Only] The data read-only property of the `web.service-workers.ExtendableMessageEvent` returns the event's data. It can be any data type. `var myData = ExtendableMessageEventInstance.data;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/data`
(last-event-id this)
Property.
[Read Only]
The lastEventID read-only property of the web.service-workers.ExtendableMessageEvent
represents, in server-sent events, the last event ID of the event
var myLastEventId = ExtendableMessageEventInstance.lastEventId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId
Property. [Read Only] The lastEventID read-only property of the `web.service-workers.ExtendableMessageEvent` represents, in server-sent events, the last event ID of the event `var myLastEventId = ExtendableMessageEventInstance.lastEventId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId`
(origin this)
Property.
[Read Only]
The origin read-only property of the web.service-workers.ExtendableMessageEvent
returns the origin of the ServiceWorkerClient
that sent the
var myOrigin = ExtendableMessageEventInstance.origin;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/origin
Property. [Read Only] The origin read-only property of the `web.service-workers.ExtendableMessageEvent` returns the origin of the `ServiceWorkerClient` that sent the `var myOrigin = ExtendableMessageEventInstance.origin;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/origin`
(ports this)
Property.
[Read Only]
The ports read-only property of the web.service-workers.ExtendableMessageEvent
returns the array containing the web.other.MessagePort
objects
the ports of the associated message channel (the channel the
is being sent through.)
var myPorts = ExtendableMessageEventInstance.ports;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports
Property. [Read Only] The ports read-only property of the `web.service-workers.ExtendableMessageEvent` returns the array containing the `web.other.MessagePort` objects the ports of the associated message channel (the channel the is being sent through.) `var myPorts = ExtendableMessageEventInstance.ports;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports`
(source this)
Property.
[Read Only]
The source read-only property of the web.service-workers.ExtendableMessageEvent
a reference to the web.service-workers.Client
object from which
message was sent.
var mySource = ExtendableMessageEventInstance.source;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source
Property. [Read Only] The source read-only property of the `web.service-workers.ExtendableMessageEvent` a reference to the `web.service-workers.Client` object from which message was sent. `var mySource = ExtendableMessageEventInstance.source;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close