Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

ServerKey and b64Result not Matching #4

Open
code4funcies opened this issue Nov 12, 2015 · 0 comments
Open

ServerKey and b64Result not Matching #4

code4funcies opened this issue Nov 12, 2015 · 0 comments

Comments

@code4funcies
Copy link

Hi.
Thank you for implementing this websocket library.
After running the Demo project I noticed my handshake was failing.
I noticed when comparing the serverKey with b64Result it returns false.
I printed the strings to the console and got:
serverKey: T+3dNVZmHv6jbhlNJr0Qgko9WDQ=
b64Result: MxsNxX0E23KLqFNKO79uD0Gjotg=

this is the part of the code that is returning false WebSocketClient::analyzeRequest()

ifdef DEBUGGING

        Serial.println("serverKey: " + serverKey);
        Serial.println("b64Result: " + String(b64Result));

endif

// if the keys match, good to go
return serverKey.equals(String(b64Result));

I appreciate any help.

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant