isOpen property
Implementation
@override
bool get isOpen {
// Dart does not provide a socket channel state
// fix when this issue is solved: https://github.com/dart-lang/web_socket_channel/issues/16
return _socket != null &&
!onDisconnect!.isCompleted &&
!_onConnectionLost!.isCompleted;
}