SocketRocket icon indicating copy to clipboard operation
SocketRocket copied to clipboard

Invalid Sec-WebSocket-Accept response

Open yx-mike opened this issue 9 years ago • 4 comments

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;

yx-mike avatar Oct 10 '16 08:10 yx-mike

i got this error message too. any idea why ?

kumangdeal avatar Oct 21 '16 07:10 kumangdeal

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

OveysSafarnejad avatar Nov 21 '18 09:11 OveysSafarnejad