2021-10-01 18:16:12 +03:00
|
|
|
#import <DOM/Event.idl>
|
|
|
|
|
2023-11-08 05:29:22 +03:00
|
|
|
// https://websockets.spec.whatwg.org/#the-closeevent-interface
|
2023-09-02 17:00:01 +03:00
|
|
|
[Exposed=*]
|
2021-04-24 14:54:24 +03:00
|
|
|
interface CloseEvent : Event {
|
2021-10-01 18:16:12 +03:00
|
|
|
constructor(DOMString type, optional CloseEventInit eventInitDict = {});
|
2021-04-24 14:54:24 +03:00
|
|
|
|
|
|
|
readonly attribute boolean wasClean;
|
|
|
|
readonly attribute unsigned short code;
|
|
|
|
readonly attribute USVString reason;
|
2021-10-01 18:16:12 +03:00
|
|
|
};
|
2021-04-24 14:54:24 +03:00
|
|
|
|
2021-10-01 18:16:12 +03:00
|
|
|
dictionary CloseEventInit : EventInit {
|
|
|
|
boolean wasClean = false;
|
|
|
|
unsigned short code = 0;
|
|
|
|
USVString reason = "";
|
2021-04-24 14:54:24 +03:00
|
|
|
};
|