dharti-thakkar / phpwebsocket

Automatically exported from code.google.com/p/phpwebsocket
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
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