Update chat.php

It was not clear that the example required /chat appended to the connection url. It looks like someone used an echo chat as a boilerplate but did not full convert the comments so it could be better understood.
Merge pull request #21 from DannyWilkerson/patch-1

Update chat.php
Update chat.php

The terminal will show a lot of notices and errors related to an inability to route messages from urls other then /chat. By creating a catchall route we can avoid confusing people.
Update time.html

There are some cross-browser issues with using innerText so I think we should use innerHTML instead. I also think adding onopen and onclose is needed for extra feedback.
Update phpws.js

added 2 missing ;
Merge pull request #25 from DannyWilkerson/patch-4

Update phpws.js
Merge pull request #24 from DannyWilkerson/patch-3

Update time.html
Merge pull request #23 from DannyWilkerson/patch-2

Update chat.php
fix websocket client reconnection and wss support

- Change creation of connector for ReactPHP changes
- Clean isClosing flag to allow multiple reconnects
- Default port is now based on protocol (80 or 443)
Merge pull request #30 from linniksa/pr-ws-client-fixes

fix websocket client reconnection and wss support
Merge remote-tracking branch 'origin/master' into test_incomplete_frame_fix