Liking cljdoc? Tell your friends :D

web.ExtendableMessageEvent

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

constructorcljs

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

datacljs

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

last-event-idcljs

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

origincljs

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

portscljs

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

set-data!cljs

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

set-last-event-id!cljs

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

set-origin!cljs

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

set-ports!cljs

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

set-source!cljs

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

sourcecljs

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

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

× close