The ExtendableMessageEvent interface of the web.ServiceWorker represents the event object of a message event fired on a service (when a channel message is received on the
web.ServiceWorkerGlobalScope`
another context) — extends the lifetime of such events.
The ExtendableMessageEvent interface of the `web.ServiceWorker represents the event object of a message event fired on a service (when a channel message is received on the `web.ServiceWorkerGlobalScope` another context) — extends the lifetime of such events.
Constructor.
The ExtendableMessageEvent() constructor creates a new web.ExtendableMessageEvent
object instance.
type
A 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 dom.DOMString
that defines the origin of the corresponding service worker's environment settings object.
lastEventId: A dom.DOMString
that defines the last event ID of the event source.
source: The web.Client
, web.ServiceWorker
or web.MessagePort
that sent the message.
ports: An array containing the web.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.ExtendableMessageEvent` object instance. type A `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 `dom.DOMString` that defines the origin of the corresponding service worker's environment settings object. lastEventId: A `dom.DOMString` that defines the last event ID of the event source. source: The `web.Client`, `web.ServiceWorker` or `web.MessagePort` that sent the message. ports: An array containing the `web.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.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.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.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.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.ExtendableMessageEvent
returns the origin of the web.ServiceWorkerClient
that sent
message.
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.ExtendableMessageEvent` returns the origin of the `web.ServiceWorkerClient` that sent message. `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.ExtendableMessageEvent
returns the array containing the web.MessagePort
objects representing
ports of the associated message channel (the channel the message
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.ExtendableMessageEvent` returns the array containing the `web.MessagePort` objects representing ports of the associated message channel (the channel the message 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.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.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.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.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.ExtendableMessageEvent
returns the origin of the web.ServiceWorkerClient
that sent
message.
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.ExtendableMessageEvent` returns the origin of the `web.ServiceWorkerClient` that sent message. `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.ExtendableMessageEvent
returns the array containing the web.MessagePort
objects representing
ports of the associated message channel (the channel the message
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.ExtendableMessageEvent` returns the array containing the `web.MessagePort` objects representing ports of the associated message channel (the channel the message 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.ExtendableMessageEvent
a reference to the web.Client
object from which the message
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.ExtendableMessageEvent` a reference to the `web.Client` object from which the message 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.ExtendableMessageEvent
a reference to the web.Client
object from which the message
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.ExtendableMessageEvent` a reference to the `web.Client` object from which the message 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