启动的php代码大约如下: <?php require_once __DIR__ . '/Workerman/Autoloader.php'; use Workerman\Lib\Timer; use Workerman\Worker; $worker = new Worker('websocket://0.0.0.0:8484'); //worker实现心跳 $worker->onWorkerSta...