shouldOpenOnNewConnection method

bool shouldOpenOnNewConnection()
inherited

Implementation

bool shouldOpenOnNewConnection() {
  openConnections++;
  openCompleter ??= Completer<bool>();
  return openConnections == 1;
}