phpday 2027 - Call for Papers

Swoole\Client::on

(PECL swoole >= 1.9.0)

Swoole\Client::on — Add callback functions triggered by events.

Description

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

Parameters

event

callback

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top