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
null
if the connection was not closed cleanly.- reason
const Str? reason
The WebSocket connection close reason provided by the server. Returns
null
if the connection was not closed cleanly.- wasClean
const Bool wasClean
Returns
true
if the connection was closed cleanly.