适用PHP版本(PECL swoole >= 1.9.0)Swoole\Client::on — 添加由事件触发的回调函数。说明 public Swoole\Client::on(string $event, callable $callback): void 参数eventcallback