WebSocketBase.readyState

int readyState()

Returns one of [CONNECTING], [OPEN], [CLOSING], or [CLOSED].