PHP - Manual: Swoole\WebSocket\Server::on
2024-12-22
(PECL swoole >= 1.9.0)
Swoole\WebSocket\Server::on — Register event callback function
Register event callback function
event_name
callback
官方地址:https://www.php.net/manual/en/swoole-websocket-server.on.php