Swoole\Server::getClientInfo

Get the connection info by file description.

Description

public array Swoole\Server::getClientInfo(int $fd, int $reactor_id = ?, bool $ignore_error = ?)

Parameters

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.

Return Values

Returns information about the client connection.