PHP - Manual: Swoole\Server::getClientInfo
2025-02-27
(PECL swoole >= 1.9.0)
Swoole\Server::getClientInfo — Get the connection info by file description.
fd
File descriptors.
reactor_id
The Reactor thread ID where the connection is made.
ignore_error
Whether to ignore errors, if set to true, connection information will be returned even if the connection is closed.
Returns information about the client connection.
官方地址:https://www.php.net/manual/en/swoole-server.getclientinfo.php