Skip to content

Custom Websocket-Header #131

@mafe

Description

@mafe

I am using this library as a client, in order to connect to a ashx-WebSocketHandler in asp.net, but it is not possible to connect to it with the default protocol header that is in the library.

With the following header it works:

    "GET /WSHandler.ashx HTTP/1.1\r\n"
    "Host: " + _host + ":" + _port + "\r\n"
    "Connection: Upgrade\r\n"
    "Pragma: no-cache\r\n"
    "Cache-Control: no-cache\r\n"
    "Upgrade: websocket\r\n"
    "Origin: ws://websocketorigin\r\n"
    "Sec-WebSocket-Version: 13\r\n"
    "Sec-WebSocket-Key: " + client->cKey + "\r\n";
    "Sec-WebSocket-Protocol: chat\r\n"
    "\r\n";

Is or will it be possible, to configure it from the main sketch in future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions