2021-10-01 12:39:03 -03:00
|
|
|
#import <DOM/Event.idl>
|
|
|
|
|
|
2022-09-05 06:41:26 -03:00
|
|
|
[]
|
2021-04-24 08:54:24 -03:00
|
|
|
interface MessageEvent : Event {
|
2021-10-01 12:39:03 -03:00
|
|
|
constructor(DOMString type, optional MessageEventInit eventInitDict = {});
|
2021-04-24 08:54:24 -03:00
|
|
|
|
2021-10-01 12:21:38 -03:00
|
|
|
readonly attribute any data;
|
2021-04-24 08:54:24 -03:00
|
|
|
readonly attribute USVString origin;
|
2021-10-01 12:30:30 -03:00
|
|
|
readonly attribute DOMString lastEventId;
|
|
|
|
|
// FIXME: readonly attribute MessageEventSource? source;
|
|
|
|
|
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
|
2021-04-24 08:54:24 -03:00
|
|
|
};
|
2021-10-01 12:39:03 -03:00
|
|
|
|
|
|
|
|
dictionary MessageEventInit : EventInit {
|
|
|
|
|
any data = null;
|
|
|
|
|
USVString origin = "";
|
|
|
|
|
DOMString lastEventId = "";
|
|
|
|
|
// FIXME: MessageEventSource? source = null;
|
|
|
|
|
// FIXME: sequence<MessagePort> ports = [];
|
|
|
|
|
};
|