Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C client for socket.io

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 program to the node server so I have dis part a little covered.

Now I need to receive some information from the node server from the C program.

Is there any client library for c that lets me do this? In case it does not exist, could you gime me some ideas to make it work?

Thank you very much!

like image 775
Pau Rosello Avatar asked Sep 04 '25 17:09

Pau Rosello


2 Answers

You can also try cellophane.io:

https://github.com/ikeralbeniz/cellophane.io

it is still buggy so it is only fot testing or POCs..

like image 77
Iker Perez de Albeniz Avatar answered Sep 07 '25 15:09

Iker Perez de Albeniz


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/

like image 30
Mathias Gontek Avatar answered Sep 07 '25 15:09

Mathias Gontek