diff --git a/README.md b/README.md index 3f1a345..5b87bd1 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ class MyChat implements MessageComponentInterface { // Run the server application through the WebSocket protocol on port 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->run(); ```