isConnected method

bool isConnected()

If there is a transport object that is opened and the incoming stream has not been closed, this will return true.

Implementation

bool isConnected() {
  return _transport.isReady && !_openSessionStreamController.isClosed;
}