xiayuxuan / phpwebsocket

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

Client Will Not Connect #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
First, I really appreciate the time the makers of this have taken to put it 
together.

There's an issue.  I downloaded client.html, websocket.class.php, and 
server.php.  I changed the url in client.html, started server.php, and opened 
client.html on my localhost.  It only shows the message "WebSocket - status 0" 
message, but not the connected message.  When I send a message, it produces the 
error "Error: INVALID_STATE_ERR: DOM Exception 11", because it's trying to send 
a message and it's not connected.

I've spent a good hour and a half debugging, and decided to see if anyone else 
had figured out how to fix this.

One more note: when I end the server.php process with the client.html page up, 
it pops up the disconnected message.  ?

What steps will reproduce the problem?
1. Run demo
2. Send message

What is the expected output? What do you see instead?
Response from the socket, but instead an error.

What version of the product are you using? On what operating system?
Chromium 8.0.552.200 (65749) Ubuntu 10.10

Original issue reported on code.google.com by jonahbron.d on 18 Nov 2010 at 7:42

GoogleCodeExporter commented 8 years ago
you need to dowload the updated draft 76 handshake file found here: 
http://code.google.com/p/phpwebsocket/issues/detail?id=16

Original comment by jchun...@gmail.com on 26 Nov 2010 at 5:39

GoogleCodeExporter commented 8 years ago
Ahh, thanks!  I guess I don't have permission to set this to resolved?

Original comment by jonahbron.d on 26 Nov 2010 at 5:46