Skip to content

Reading the headers in a websocket client #4

Open
@raffaeler

Description

@raffaeler

Hi,
I am trying to read the headers right after the connect() in a websocket client app (rest-sdk 2.6).
auto config = client->config();
auto headers = config.headers();

The connect was successful, but the headers are always empty even if I can see them from wireshark.

As an additional information, I can't even see the server name (by default I understood that it should show up).
auto server_name = config.server_name();

My final target is to access the "Sec-WebSocket-Accept" string which should be used as an unique identifier of the connection.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions