class MessageEvent
extends Event

Constructors

new
MessageEvent(type: string, eventInitDict?: MessageEventInit)
[src]

Type Parameters

optional
T = any
[src]

Properties

readonly
data: T
[src]

Returns the data of the message.

readonly
lastEventId: string
[src]

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

readonly
ports: ReadonlyArray<MessagePort>
[src]

Returns transferred ports.