Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing #71

Open
GoogleCodeExporter opened this issue Feb 2, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Normal connect to a lazy local or online server, see 'Sec-WebSocket-Accept' 
header is missing in Chrome 17

What is the expected output? What do you see instead?
Normally the client should get the "connect" state, but unfortunately it is 
disconnecting immediately with status 3. 


What version of the product are you using? On what operating system?
Latest one.


Please provide any additional information below.
What you need is to implement the Sec-WebSocket-Accept header, see 
http://en.wikipedia.org/wiki/WebSocket#WebSocket_protocol_handshake
The client provides the key and the server respond with the encrypted accepted 
header. I've patched that for you. Can I join the project? Attached the patch.


Original issue reported on code.google.com by michaelpalmer04 on 25 Apr 2014 at 8:12

@GoogleCodeExporter
Copy link
Author

sorry, haven'tr seen that one: 
https://code.google.com/p/phpwebsocket/issues/detail?id=39&q=header

Original comment by michaelpalmer04 on 25 Apr 2014 at 8:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant