isConnected property

bool get isConnected

Implementation

bool get isConnected {
  return _ws != null && _ws?.readyState == WebSocket.open;
}