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