Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public static function is_server_running() |
||
17 | { |
||
18 | echo 'Running server...' . PHP_EOL; |
||
19 | |||
20 | $config = new ServerConfig(); |
||
21 | $config->setClientsPerFork(2500); |
||
22 | $config->setStreamSelectTimeout(2 * 3600); |
||
23 | $config->setLoopingDelay(1); |
||
24 | |||
25 | $websocketServer = new WebSocketServer(new ServerHandler(), $config); |
||
26 | $websocketServer->run(); |
||
27 | } |
||
29 |