Merge pull request #140 from bramus/patch-2

Asterisk must be quoted inside array()
This commit is contained in:
Chris Boden 2013-11-05 15:31:52 -08:00
commit 9ab9894a67
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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
*/