const classafWebSockets::CloseEvent

sys::Obj
  afWebSockets::CloseEvent

@Js

Sent on a WebSocket close event.

code

Source

const Int? code

The WebSocket connection close code provided by the server. Returns null if the connection was not closed cleanly.

reason

Source

const Str? reason

The WebSocket connection close reason provided by the server. Returns null if the connection was not closed cleanly.

wasClean

Source

const Bool wasClean

Returns true if the connection was closed cleanly.