isActive property
bool
get
isActive
Returns true if the connection is active (connected or connecting)
Implementation
bool get isActive =>
this == WebSocketState.connected ||
this == WebSocketState.connecting ||
this == WebSocketState.reconnecting;