Boil coffee and sugar. Sprinkle cocoa and a pinch of salt. After a couple of minutes, when the sauce thickens, add vanilla. Cool to room temperature.
Beat milk, ice cream, salt and syrup in a blender. Pour a little sauce into the glass, after the cocktail. Alternate layers to the top.