php8.5
Home/ Manual/ server / port/ Swoole\Server\Port::on

Swoole\Server\Port::on

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Register callback functions by event.

Description

Swoole\Server\Port::on(string $event_name, callable $callback): ReturnType

Parameters

event_name
callback

Return Values

Source: reference/swoole/swoole/server/port/on.xml · from the official PHP manual (php/doc-en)