CloseEvent
Generated from idl/websockets.webidl when the site was built at 7aa23e2.
CloseEvent is an interface in idl/websockets.webidl, inheriting Event, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| WebSockets | Widely available | Partial 88% 756 of 857 subtests pass | 5 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor(DOMString type, optional CloseEventInit eventInitDict = {});int32_t niso_close_event_new(niso_dom* dom, const char* type, size_t type_len, const niso_close_event_init* event_init_dict, niso_handle* out);wasClean
Section titled “wasClean”readonly attribute boolean wasClean;int32_t niso_close_event_get_was_clean(niso_dom* dom, niso_handle self, bool* out);readonly attribute unsigned short code;int32_t niso_close_event_get_code(niso_dom* dom, niso_handle self, uint16_t* out);reason
Section titled “reason”readonly attribute USVString reason;int32_t niso_close_event_get_reason(niso_dom* dom, niso_handle self, niso_str* out);