Swoole\Server::on

Register a callback function by event name.

Description

public void Swoole\Server::on(string $event_name, callable $callback)

Parameters

event_name

callback

Return Values