Most of the Germans that came to Texas before the Civil War were freethinkers and proto socialists, often setting up communal experiments or communities. Most of the mayors and other local officials were at least socialist-influenced. They were strongly abolitionist, paid Indians for land they settled on, and set up the first bilingual education anywhere in the US.
http://www.labordallas.org/hist/reds.htm
But there wasn't a Socialist Party in the state til 1900.
How could a nation whose largest majority is property holders fall for a sham that's against the existence of property?
In fact, in the 1870's, what kind of traction could 'socialism' even get? The industrial working class is a tiny portion of the population, the majority is still free-holding farmers. While you might be able to get some kind of alliance between debt-ridden farmers and inner-city laborers...how is it going to turn out any different than IOTL, where this happened anyway?