Place the granulated and brown sugar, cocoa powder, flour and salt into a saucepan. Add the evaporated milk, water and butter and bring slowly to the boil, stirring constantly. Once boiling, cook for five minutes.
Remove the sauce from the heat and allow to cool slightly. Stir in the vanilla extract.