debugHostContainsConnection method
Visible for testing: reports whether a specific connection is still tracked.
Implementation
bool debugHostContainsConnection(Connection connection) {
return _connectionPool[connection.serverConfig.hostUrl]
?._connections
.contains(connection) ??
false;
}