enum classafWebSockets::ReadyState

sys::Obj
  sys::Enum
    afWebSockets::ReadyState

@Js
@Serializable { simple=true }

The state of the WebSocket connection.

closed

Source

const static ReadyState closed := ...

The connection has been closed or could not be opened.

closing

Source

const static ReadyState closing := ...

The connection is going through the closing handshake.

connecting

Source

const static ReadyState connecting := ...

The connection has not yet been established.

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the ReadyState instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

open

Source

const static ReadyState open := ...

The WebSocket connection is established and communication is possible.

vals

Source

const static ReadyState[] vals := ...

List of ReadyState values indexed by ordinal