Swoole\WebSocket\Server::on

Register event callback function

Description

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

Register event callback function

Parameters

event_name

callback

Return Values