- Use
git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.gitto clone your local repo. - Run
cmake ./ - Run
make install(if makefile generated) or open generated project (if project file generated) to build. - Outputs is under
./build, link with the all static libs under./build/liband include headers under./build/includein your client code where you want to use it.
- Use
git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.gitto clone your local repo. - Add
./lib/asio/asio/include,./lib/websocketppand./lib/rapidjson/includeto headers search path. - Include all files under
./srcin your project, addsio_client.cpp,sio_socket.cpp,internal/sio_client_impl.cpp,internal/sio_packet.cppto source list. - Include
sio_client.hin your client code where you want to use it.