Liking cljdoc? Tell your friends :D

web.service-workers.ExtendableMessageEvent

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.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The ExtendableMessageEvent() constructor creates a new web.service-workers.ExtendableMessageEvent object instance.

type A web.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.DOMString that defines the origin of the corresponding service worker's environment settings object. lastEventId: A web.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.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.DOMString` that defines the origin of the corresponding service worker's environment settings object.
lastEventId: A `web.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`
sourceraw docstring

datacljs

(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`
sourceraw docstring

last-event-idcljs

(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`
sourceraw docstring

origincljs

(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`
sourceraw docstring

portscljs

(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`
sourceraw docstring

sourcecljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close