I am trying to establish a connection from a program in C to a node server with socket.io.
The only way I could figure out was to make http request from the C progra
Can you use C++ instead? If so,
https://github.com/ebshimizu/socket.io-clientpp
You can also try cellophane.io:
https://github.com/ikeralbeniz/cellophane.io
it is still buggy so it is only fot testing or POCs..
If you are looking for a library and examples try libwebsockets
It has both client and server capability and I hope it should help you out well with its documentations and examples.
New C++ Client
Based on Boost and WebSocket++, this full-featured Socket.IO 1.0 client has the fundamental advantage of working on multiple platforms.
http://socket.io/blog/socket-io-cpp/