et-nik / et-nik/phpwebsocket

Client Will Not Connect

Open
#20 2 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.