interface MessageEvent
extends Event
Type Parameters Jump to heading
Jump to headingT = anyProperties Jump to heading
readonly
Jump to headingdata: TReturns the data of the message.
readonly
Jump to headingorigin: stringReturns the origin of the message, for server-sent events.
readonly
Jump to headinglastEventId: stringReturns the last event ID string, for server-sent events.
readonly
Jump to headingsource: MessageEventSource | nullreadonly
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