Fix example in README.md fixes #690
This commit is contained in:
parent
bca7183c5a
commit
6bb65ffb6b
@ -68,7 +68,7 @@ class MyChat implements MessageComponentInterface {
|
|||||||
|
|
||||||
// Run the server application through the WebSocket protocol on port 8080
|
// Run the server application through the WebSocket protocol on port 8080
|
||||||
$app = new Ratchet\App('localhost', 8080);
|
$app = new Ratchet\App('localhost', 8080);
|
||||||
$app->route('/chat', new MyChat);
|
$app->route('/chat', new MyChat, array('*'));
|
||||||
$app->route('/echo', new Ratchet\Server\EchoServer, array('*'));
|
$app->route('/echo', new Ratchet\Server\EchoServer, array('*'));
|
||||||
$app->run();
|
$app->run();
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user