Swoole\Server\Port::on
(PECL swoole >= 1.9.0)
Swoole\Server\Port::on — Register callback functions by event.
Опис
public Swoole\Server\Port::on(
string $event_name
,
callable $callback
):
ReturnType
Параметри
event_name
-
callback
-
Значення, що повертаються