daiyuwu / phpwebsocket

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

Wrong HandShake final byte #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please provide any additional information below.

In the dohandshake function, you write on the socket $upgrade.chr(0) . Your 
0x00 byte hasn't to be there. When you add the msg received to DOM, it's all ok 
but if you print it with an alert, it won't print as there is still a 0x00 byte 
at the beginning of the msg.

Original issue reported on code.google.com by algar...@gmail.com on 3 Aug 2010 at 6:38

GoogleCodeExporter commented 8 years ago
Leaving chr(0) out doesn't work for me. On the contrary, I had to add chr(255) 
to get it to work (see issue 16).

Original comment by chr...@fastmail.fm on 10 Dec 2010 at 1:02