When trying to connect to a custom socket server using SocketRocket I am getting the error:
Error Domain=SRWebSocketErrorDomain Code=2133 "Invalid Sec-WebSocket-Accept response" UserInfo=0x8f6af00 {NSLocalizedDescription=Invalid Sec-WebSocket-Accept response}
I have linked this back to the _checkHandshake method in _HTTPHeadersDidFinish. The _checkHandshake method is doing the following:
NSString *acceptHeader = CFBridgingRelease(CFHTTPMessageCopyHeaderFieldValue(httpMessage, CFSTR("Sec-WebSocket-Accept")));
I have found this question and have the latest version of socketrocket but doesn't seem to be working?
https://github.com/square/SocketRocket/issues/24
Please let me know how I get around this error (SocketRocket - Invalid Sec-WebSocket-Accept)