MessageEvent interface

E856200

The MessageEvent interface is a web API object representing messages sent between different browsing contexts or threads, such as web workers, including the data and metadata associated with each message.

All labels observed (1)

Label Occurrences
MessageEvent interface canonical 1

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf Event interface ⓘ
Web API interface ⓘ
availableInContext BroadcastChannel ⓘ
MessagePort ⓘ
ServiceWorker ⓘ
SharedWorker ⓘ
Window ⓘ
Worker ⓘ
browserSupport supported by major modern browsers ⓘ
createdBy BroadcastChannel message dispatch ⓘ
postMessage ⓘ
server-sent events ⓘ
definedInSpecification HTML Living Standard ⓘ
WHATWG HTML ⓘ
eventTypeExample "message" ⓘ
"messageerror" ⓘ
hasConstructor MessageEvent() ⓘ
hasMethod initMessageEvent ⓘ
hasProperty bubbles ⓘ
cancelable ⓘ
composed ⓘ
currentTarget ⓘ
data ⓘ
lastEventId ⓘ
origin ⓘ
ports ⓘ
source ⓘ
target ⓘ
timeStamp ⓘ
type ⓘ
inheritsFrom Event ⓘ
isCancelable false for typical message events ⓘ
isComposed false for typical message events ⓘ
lifecycle dispatched to event listeners registered for "message" ⓘ
propertyType data can be any serializable JavaScript value ⓘ
lastEventId is a DOMString ⓘ
origin is a DOMString ⓘ
ports is a FrozenArray<MessagePort> ⓘ
source is a WindowProxy or MessagePort or ServiceWorker or null ⓘ
relatedInterface BroadcastChannel ⓘ
MessagePort ⓘ
ServiceWorker ⓘ
linked to: Service Workers

Window.postMessage ⓘ
Worker ⓘ
securityConsideration origin should be checked to validate message source ⓘ
usedFor communication between browsing contexts ⓘ
communication with Web Workers ⓘ
cross-context messaging ⓘ
postMessage API callbacks ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Web workers → uses → MessageEvent interface ⓘ