有个费时间的任务, 下面写法,在workerman正常, 但是Gateway中,BusinessWorker马上就变繁忙 $task_connection = new AsyncTcpConnection('Text://127.0.0.1:1621'); $task_connection->send($data); $task_connection->on...
$ws_worker->onMessage = function($connection, $data) { // 向客户端发送hello $data //$connection->send('hello ' . $data); 这里可以写mysql链接写入数据吗? };...