isConnected property
bool
isConnected
Whether the underlying socket is connected of not.
Implementation
bool get isConnected => _ws != null && _socketState == SocketState.connected;
Whether the underlying socket is connected of not.
bool get isConnected => _ws != null && _socketState == SocketState.connected;