Asterisk must be quoted inside array()
This commit is contained in:
parent
d756e0b507
commit
b48f0fa6fd
@ -75,7 +75,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);
|
||||||
$app->route('/echo', new Ratchet\Server\EchoServer, array(*));
|
$app->route('/echo', new Ratchet\Server\EchoServer, array('*'));
|
||||||
$app->run();
|
$app->run();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ class App {
|
|||||||
* Add an endpiont/application to the server
|
* Add an endpiont/application to the server
|
||||||
* @param string $path The URI the client will connect to
|
* @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 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
|
* @param string $httpHost Override the $httpHost variable provided in the __construct
|
||||||
* @return ComponentInterface|WsServer
|
* @return ComponentInterface|WsServer
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user