socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Authorization problem

Open BeastBurst opened this issue 2 years ago • 1 comments

Does this implementation of socket.io for C++ have a support for sending authorization bearer token ?

BeastBurst avatar Sep 27 '23 13:09 BeastBurst

sio::message::ptr auth = sio::object_message::create();
auth->get_map()["Authorization"] = sio::string_message::create("Bearer " + your_token);
client.connect(your_url, auth);

Louritan avatar Nov 07 '24 13:11 Louritan