PHP - Manual: Swoole\Server\Port::on
2024-11-15
(PECL swoole >= 1.9.0)
Swoole\Server\Port::on — Register callback functions by event.
$event_name
$callback
event_name
callback
官方地址:https://www.php.net/manual/en/swoole-server-port.on.php