MessageEvent.idl 613 B

1234567891011121314151617181920
  1. #import <DOM/Event.idl>
  2. []
  3. interface MessageEvent : Event {
  4. constructor(DOMString type, optional MessageEventInit eventInitDict = {});
  5. readonly attribute any data;
  6. readonly attribute USVString origin;
  7. readonly attribute DOMString lastEventId;
  8. // FIXME: readonly attribute MessageEventSource? source;
  9. // FIXME: readonly attribute FrozenArray<MessagePort> ports;
  10. };
  11. dictionary MessageEventInit : EventInit {
  12. any data = null;
  13. USVString origin = "";
  14. DOMString lastEventId = "";
  15. // FIXME: MessageEventSource? source = null;
  16. // FIXME: sequence<MessagePort> ports = [];
  17. };