Skip to content

SecKey length #24

Closed
Closed
@bkniffler

Description

@bkniffler

Hey, currently the SecKey length is fixed to 21 chars (https://github.com/arduino-libraries/ArduinoHttpClient/blob/master/src/WebSocketClient.cpp#L39), but I've seen some examples (f.e. wikipedia article) using 24 chars. There doesn't seem to be a specification about the length, but I've stumbled upon libraries that expect the length of 24 chars (https://www.npmjs.com/package/uws).

So, I'd suggest to make the SecKey length overwritable and maybe change the default length to 24 characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions