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.
Constructor.
The ExtendableMessageEvent() constructor creates a new web.service-workers.ExtendableMessageEvent
object instance.
type
A web.dom.DOMString
that defines the type of the message event being created.
init Optional
An initialisation object, which should contain the following parameters:
data: The event's data — this can be any type.
origin: A web.dom.DOMString
that defines the origin of the corresponding service worker's environment settings object.
lastEventId: A web.dom.DOMString
that defines the last event ID of the event source.
source: The web.service-workers.Client
, web.workers.ServiceWorker
or web.other.MessagePort
that sent the message.
ports: An array containing the web.other.MessagePort
objects connected to the channel sending the message.
See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent
Constructor. The ExtendableMessageEvent() constructor creates a new `web.service-workers.ExtendableMessageEvent` object instance. type A `web.dom.DOMString` that defines the type of the message event being created. init Optional An initialisation object, which should contain the following parameters: data: The event's data — this can be any type. origin: A `web.dom.DOMString` that defines the origin of the corresponding service worker's environment settings object. lastEventId: A `web.dom.DOMString` that defines the last event ID of the event source. source: The `web.service-workers.Client`, `web.workers.ServiceWorker` or `web.other.MessagePort` that sent the message. ports: An array containing the `web.other.MessagePort` objects connected to the channel sending the message. See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent`
(data this)
Property.
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. 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.
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. 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.
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. 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.
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. 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`
(set-data! this val)
Property.
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. 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`
(set-last-event-id! this val)
Property.
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. 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`
(set-origin! this val)
Property.
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. 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`
(set-ports! this val)
Property.
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. 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`
(set-source! this val)
Property.
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. 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`
(source this)
Property.
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. 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