Cannot send binary data
When we send binary data and the last byte is 10000000 with std::make_shared<std::string>(data, size) we get the following error.
Every other data packet seems to work fine until we get to one where the last byte is the one said above.
The error:
libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: stoi: no conversion
Any clue what we might've done wrong ?
cc @tnicolas42 who's working with me
Hi,
Any progress? I encountered the same problem. It seems that it fails to parse the received binary payload. I opened another issue on https://github.com/socketio/socket.io-client-cpp/issues/299
Sadly, we didn't use it this way. @tnicolas42, how did we end up doing it ?
Finally, we sent binary data has hex string. So we have to convert all data before send it...
Strange. Sending binary msg works well for me. Thanks for the info!