count = getenv('WEBMAN_WORKERS') ?: (swoole_cpu_num() ?: 1); $http_worker->name = 'AdapterMan'; $http_worker->onWorkerStart = static function () { //init(); require __DIR__ . '/start.php'; }; $http_worker->onMessage = static function ($connection, $request) { $connection->send(run()); }; Worker::runAll();