Cook the onions until translucent, then add the garlic and cook another minute or two, until fragrant. Then stir in the flour and cook for another minute or two. Next stir in the broth about a cup at a time, making sure the flour mixture is smoothly mixed in and there are no lumps, then stir in the cream, the salt and pepper. Let this come up to a low boil.