@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package WebSockets |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package WebSockets |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | if ($argc < 2) { |
10 | 10 | echo "Supervisor takes command as argument and execute it. If command stops for some reason - supervisor will start it again in 1 second and will do that until alive itself.\nUsage: php supervisor.php 'some-command'"; |
11 | 11 | return; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function onOpen (ConnectionInterface $conn, RequestInterface $request = null) { |
29 | 29 | $L = Language::instance(); |
30 | 30 | /** @noinspection PhpUndefinedFieldInspection */ |
31 | - $SERVER = new _SERVER( |
|
31 | + $SERVER = new _SERVER( |
|
32 | 32 | [ |
33 | 33 | 'REMOTE_ADDR' => $conn->remoteAddress, |
34 | 34 | 'HTTP_X_FORWARDED_FOR' => $request->getHeader('X-Forwarded-For'), |