swoole_server->send

向客户端发送数据,函数原型:

bool swoole_server->send(int $fd, string $data, int $extraData = 0);

TCP服务器

TCP客户端发送数据,不需要$extraData参数

UDP服务器