Bring the milk, water, salt, and butter to a boil over medium heat, stirring constantly. Once the butter has melted, add the flour all at once and stir vigorously to combine. Continue to stir until the mixture forms a mass and pulls away from the sides of the pan, about 3 minutes.
Transfer the mixture to a mixer fitted with the paddle attachment and beat briefl