A message received by a target object.
Members
string
# origin
Returns the origin of the message, for server-sent events and cross-document messaging.
ReadonlyArray.<MessagePort>
# ports
Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
MessageEventSource
|
null
# source
Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.