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

Client Will Not Connect #20

Open
GoogleCodeExporter opened this issue Jul 17, 2015 · 2 comments
Open

Client Will Not Connect #20

GoogleCodeExporter opened this issue Jul 17, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

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