Swoole\Client
PHP Manual

Swoole\Client::on

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Client::onAdd callback functions triggered by events.

说明

public void Swoole\Client::on ( string $event , callable $callback )

参数

event

callback


Swoole\Client
PHP Manual