In a saucepan, combine sugar, cocoa and flour. Add water and milk; stir until smooth. Cook over medium heat, stirring constantly, until mixture comes to a boil. Cook until thick, about 1 minute. Remove from heat; stir in vanilla and salt. Cool to room temperature, stirring several times. Pour into a serving bowl or individual dishes. Serve warm or chill.