connected property

bool get connected

Check if the connection is active

Implementation

bool get connected => _channel != null && _channel!.closeCode == null;