Skip to content

Trouble with Authentication #343

@braaandon

Description

@braaandon

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions