const classafWebSockets::CloseEvent
sys::Obj afWebSockets::CloseEvent
@Js
Sent on a WebSocket close event.
- code
- const Int? code- The WebSocket connection close code provided by the server. Returns - nullif the connection was not closed cleanly.
- reason
- const Str? reason- The WebSocket connection close reason provided by the server. Returns - nullif the connection was not closed cleanly.
- wasClean
- const Bool wasClean- Returns - trueif the connection was closed cleanly.