Struggling to understand why the querystring works but the auth parameter does not (it is not sent at all).
Querystring Code
client.connect(uri, {{"token", token}});
Auth Code:
sio::message::ptr auth = sio::object_message::create();
auth->get_map()["token"] = sio::string_message::create(token);
client.connect(uri, auth);
Struggling to understand why the querystring works but the auth parameter does not (it is not sent at all).
Querystring Code
client.connect(uri, {{"token", token}});Auth Code:
sio::message::ptr auth = sio::object_message::create(); auth->get_map()["token"] = sio::string_message::create(token); client.connect(uri, auth);