Rousseau frequently expresses distrust of sophisticated cosmopolitanism. See his Discourse on Political Economy (1755). Similarly, in his first draft of On Social Contract (the "Geneva Manuscript") he states, "It is apparent from this what should be thought of those supposed Cosmopolites who, justifying their love of the homeland by means of their love of the human race, boast of loving everyone in order to have the right to love no one" (Collected Writings, Vol.4. p. 81).
On the other hand, in his Discourse on the Origin of Inequality Rousseau acknowledges that natural commiseration does exist in "a few great cosmopolitan spirits.".