PHP Manual
Function Reference
Other Basic Extensions
Swoole
Swoole\Client
Swoole\Client::close
Swoole\Client::connect
Swoole\Client::__construct
Swoole\Client::__destruct
Swoole\Client::getpeername
Swoole\Client::getsockname
Swoole\Client::isConnected
Swoole\Client::on
Swoole\Client::pause
Swoole\Client::pipe
Swoole\Client::recv
Swoole\Client::resume
Swoole\Client::send
Swoole\Client::sendfile
Swoole\Client::sendto
Swoole\Client::set
Swoole\Client::sleep
Swoole\Client::wakeup
Swoole\Client::isConnected
Swoole\Client::pause
Swoole\Client
PHP Manual
Swoole\Client::on
Add callback functions triggered by events.
Description
public
void
Swoole\Client::on
(
string
$event
,
callable
$callback
)
Parameters
event
callback