Combine the sugar and cocoa powder with the heavy cream, milk, corn syrup and salt in a medium saucepan. Bring the mixture to a simmer, whisking regularly to dissolve the sugar. Remove the pan from the heat and stir in the vanilla extract and bourbon (if using).