interface MessageEvent
extends Event
Type Parameters Jump to heading
Jump to headingT = any
Properties Jump to heading
readonly
Jump to headingdata: T
Returns the data of the message.
readonly
Jump to headingorigin: string
Returns the origin of the message, for server-sent events.
readonly
Jump to headinglastEventId: string
Returns the last event ID string, for server-sent events.
readonly
Jump to headingsource: MessageEventSource | null
readonly
Jump to headingports: ReadonlyArray<MessagePort>
Returns transferred ports.
Methods Jump to heading
deprecated
Jump to headinginitMessageEvent(type: string,bubbles?: boolean,cancelable?: boolean,data?: any,origin?: string,lastEventId?: string,source?: MessageEventSource | null,ports?: MessagePort[],): void