MessageEvent

class MessageEvent<T = any> extends Event {
constructor(type: string, eventInitDict?: MessageEventInit);
readonly data: T;
readonly lastEventId: string;
readonly ports: ReadonlyArray<MessagePort>;
}

§Type Parameters

§
T = any
[src]

§Extends

§
Event
[src]

§Constructors

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

§Properties

§
data: T
[src]

Returns the data of the message.

§
lastEventId: string
[src]

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

§
ports: ReadonlyArray<MessagePort>
[src]

Returns transferred ports.