socketio/socket.io-client-cpp ? reverse-engineered prompt
Reverse engineered prompt
Build me a modern C++11 Socket.IO client library that can connect to a Socket.IO server over WebSocket and feel similar to the JavaScript client. It should let me connect to a server, listen for events, emit events with text, JSON style data, multiple arguments, and binary payloads, and support simple ack callbacks too.
I want it to work across platforms, with a clean API for namespaces and multiple sockets, and it should be easy to drop into a desktop or mobile app. Include a small set of example apps, like a console chat client, and ideally one GUI or mobile example too, so I can see how it’s used in real life.
Please keep the code modern and straightforward, make the build setup work smoothly, and if you need current install or dependency details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit