sioxx: Modern C++ Socket.IO Client Built on Boost.Beast and nlohmann/json
A developer has released sioxx, a new open-source C++ Socket.IO client library designed to replace the aging socket.io-client-cpp. Unlike its predecessor, sioxx uses nlohmann/json and Boost.Beast instead of vendoring RapidJSON and websocketpp, eliminating dependency conflicts in modern C++ projects. The library supports both JSON and MessagePack wire protocols, selectable per client, and leverages nlohmann's built-in MessagePack serialization to handle binary payloads without extra libraries. It features modern CMake integration, capped exponential backoff reconnection, and a GoogleTest suite covering parsers, transports, and engine.io framing. The public API mirrors standard Socket.IO conventions, including namespaces, event handlers, emit, and acknowledgement callbacks.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in