Invalid Sec-WebSocket-Accept response
SRWebSocket didFailWithError:Error Domain=SRWebSocketErrorDomain Code=2133 "Invalid Sec-WebSocket-Accept response" UserInfo={NSLocalizedDescription=Invalid Sec-WebSocket-Accept response}
- (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error;
i got this error message too. any idea why ?
Even I too got this error and still trying find out the solution.. but just for your information the same code is working fine if I use Starscream..
hi to all guys, is there any body solved this problem?
after some searches i have understood Sec-Websocket-Accept is a header for server response when client and server are doing handshake...
i'm using a java server and can add this header to response but can't find out which value is appropriate for it, if you know please help :)
here is the link about that header :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept