Fix example in README.md fixes #690

This commit is contained in:
Matt Bonneau 2018-12-13 21:40:51 -05:00 committed by GitHub
parent bca7183c5a
commit 6bb65ffb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
``` ```