ESP8266-Websocket icon indicating copy to clipboard operation
ESP8266-Websocket copied to clipboard

ServerKey and b64Result not Matching

Open code4funcies opened this issue 9 years ago • 0 comments

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

code4funcies avatar Nov 12 '15 18:11 code4funcies