Documentation/MessageEvent
classWORKER

MessageEvent

js/worker.js:752
MessageEvent(type, options)

Event carrying a structured-clone message payload.

Parameters

NameTypeDescription
typestring
optionsoptionalObject
propertyWORKERreadonly

data

js/worker.js:761
data: *

Structured-clone payload carried by a message event.

propertyWORKERreadonly

direction

js/worker.js:810
direction: string = ""

Direction of a JSplitter Worker message: panel-to-worker or worker-to-panel. Manually constructed MessageEvent objects use an empty string unless a direction is supplied explicitly.

propertyWORKERreadonly

errorMessage

js/worker.js:801
errorMessage: string = ""

JSplitter reconstruction diagnostic for a messageerror event. It contains the structured-clone read failure reported by the receiving endpoint and is an empty string for an ordinary message event.

propertyWORKERreadonly

lastEventId

js/worker.js:777
lastEventId: string = ""

Last event identifier. JSplitter Worker messages do not use event-stream IDs, so this is an empty string.

propertyWORKERreadonly

origin

js/worker.js:769
origin: string = ""

Message origin. JSplitter Worker messages use an empty string because they are not URL-origin messages.

propertyWORKERreadonly

ports

js/worker.js:793
ports: Array = []

Transferred message ports. JSplitter does not expose MessagePort objects, so this array is empty.

propertyWORKERreadonly

source

js/worker.js:785
source: * = null

Message source endpoint. JSplitter Worker messages do not expose a MessagePort-style source, so this is null.