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

how to auth with token

Open ghost opened this issue 6 years ago • 1 comments

I use h.connect("ws://localhost:3000?token=xxxx")
It seem does'nt work

ghost avatar Mar 30 '18 14:03 ghost

Use query

    std::map<std::string, std::string> query;
    query["token"] = "xxxx");
    h.connect(""ws://localhost:3000", query);

biboc avatar Jul 13 '18 12:07 biboc