ESP8266-Websocket
ESP8266-Websocket copied to clipboard
ServerKey and b64Result not Matching
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