CloseEvent.idl 469 B

1234567891011121314151617
  1. #import <DOM/Event.idl>
  2. // https://websockets.spec.whatwg.org/#the-closeevent-interface
  3. [Exposed=*]
  4. interface CloseEvent : Event {
  5. constructor(DOMString type, optional CloseEventInit eventInitDict = {});
  6. readonly attribute boolean wasClean;
  7. readonly attribute unsigned short code;
  8. readonly attribute USVString reason;
  9. };
  10. dictionary CloseEventInit : EventInit {
  11. boolean wasClean = false;
  12. unsigned short code = 0;
  13. USVString reason = "";
  14. };