readyState method

int readyState()

Implementation

int readyState() {
  parse_web_socket.WebSocket? webSocket = _webSocket;
  if (webSocket != null) {
    return webSocket.readyState;
  }
  return parse_web_socket.WebSocket.connecting;
}