interface MessageEvent
extends Event
readonly
origin: string
Returns the origin of the message, for server-sent events.
readonly
lastEventId: string
Returns the last event ID string, for server-sent events.
readonly
source: MessageEventSource | null
readonly
ports: ReadonlyArray<MessagePort>
Returns transferred ports.
deprecated
initMessageEvent(type: string,bubbles?: boolean,cancelable?: boolean,data?: any,origin?: string,lastEventId?: string,source?: MessageEventSource | null,ports?: MessagePort[],): void