Interface

MessageEvent

MessageEvent

A message received by a target object.

View Source js/lib.dom.d.ts, line 4947

Members

T

# data

Returns the data of the message.

View Source js/lib.dom.d.ts, line 4950

string

# lastEventId

Returns the last event ID string, for server-sent events.

View Source js/lib.dom.d.ts, line 4955

string

# origin

Returns the origin of the message, for server-sent events and cross-document messaging.

View Source js/lib.dom.d.ts, line 4960

ReadonlyArray.<MessagePort>

# ports

Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.

View Source js/lib.dom.d.ts, line 4965

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.

View Source js/lib.dom.d.ts, line 4970