In a non-stick saucepan, soften the onions in the butter until golden, about 20 minutes. Season with salt and pepper.Sprinkle with the flour and continue cooking for 1 minute. Add the ale, garlic and thyme. Reduce by half. Add the chicken broth and bring to a boil. Remove from the heat and stir in the chocolate. Adjust the seasoning.