isConnected property
bool
get
isConnected
Checks if the connection is currently active
Implementation
bool get isConnected => currentState == WebSocketState.connected;
Checks if the connection is currently active
bool get isConnected => currentState == WebSocketState.connected;