The MessageEvent interface represents a message received by a object.
The MessageEvent interface represents a message received by a object.
(data this)
Property.
[Read Only]
The data read-only property of the web.workers.MessageEvent
represents the data sent by the message emitter.
var data = messageEvent.data;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/data
Property. [Read Only] The data read-only property of the `web.workers.MessageEvent` represents the data sent by the message emitter. `var data = messageEvent.data;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/data`
(init-message-event this & args)
Method.
Initializes a message event. Do not use this anymore — use the constructor instead.
Method. Initializes a message event. Do not use this anymore — use the constructor instead.
(last-event-id this)
Property.
[Read Only]
The lastEventId read-only property of the web.workers.MessageEvent
is a web.dom.DOMString
representing a unique ID for the event.
var myId = messageEvent.lastEventId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/lastEventId
Property. [Read Only] The lastEventId read-only property of the `web.workers.MessageEvent` is a `web.dom.DOMString` representing a unique ID for the event. `var myId = messageEvent.lastEventId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/lastEventId`
(origin this)
Property.
[Read Only]
The origin read-only property of the web.workers.MessageEvent
is a web.USVString
representing the origin of the message emitter.
var origin = messageEvent.origin;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/origin
Property. [Read Only] The origin read-only property of the `web.workers.MessageEvent` is a `web.USVString` representing the origin of the message emitter. `var origin = messageEvent.origin;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/origin`
(ports this)
Property.
[Read Only]
The ports read-only property of the web.workers.MessageEvent
is an array of web.other.MessagePort
objects representing the
associated with the channel the message is being sent through
appropriate, e.g. in channel messaging or when sending a message
a shared worker).
var myPorts = messageEvent.ports;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/ports
Property. [Read Only] The ports read-only property of the `web.workers.MessageEvent` is an array of `web.other.MessagePort` objects representing the associated with the channel the message is being sent through appropriate, e.g. in channel messaging or when sending a message a shared worker). `var myPorts = messageEvent.ports;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/ports`
(source this)
Property.
[Read Only]
The source read-only property of the web.workers.MessageEvent
is a MessageEventSource (which can be a WindowProxy
, web.other.MessagePort
,
web.workers.ServiceWorker
object) representing the message
let mySource = messageEvent.source;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/source
Property. [Read Only] The source read-only property of the `web.workers.MessageEvent` is a MessageEventSource (which can be a `WindowProxy`, `web.other.MessagePort`, `web.workers.ServiceWorker` object) representing the message `let mySource = messageEvent.source;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/source`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close