diff --git a/README.md b/README.md index fa127b6..040e699 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,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('/echo', new Ratchet\Server\EchoServer, array(*)); + $app->route('/echo', new Ratchet\Server\EchoServer, array('*')); $app->run(); ``` diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index cc44694..5cb4ae7 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -88,7 +88,7 @@ class App { * Add an endpiont/application to the server * @param string $path The URI the client will connect to * @param ComponentInterface $controller Your application to server for the route. If not specified, assumed to be for a WebSocket - * @param array $allowedOrigins An array of hosts allowed to connect (same host by default), [*] for any + * @param array $allowedOrigins An array of hosts allowed to connect (same host by default), ['*'] for any * @param string $httpHost Override the $httpHost variable provided in the __construct * @return ComponentInterface|WsServer */