In a medium-sized saucepan over medium heat, whisk together sugar, corn syrup, water and cocoa powder; whisk constantly until mixture comes to a low boil
Cook for one additional minute, still whisking and then remove from heat
Stir in vanilla
Chill in refrigerator for at least one hour or until ready to use (up to two weeks)