Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Client::isConnectedSwoole\Client::pause>
^Swoole\ClientLast updated: Mon, 26 Oct 2026

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


<Swoole\Client::isConnectedSwoole\Client::pause>
^Swoole\ClientLast updated: Mon, 26 Oct 2026