use phuongaz\apiserve\Loader as APIServe;
APIServe::registerHandle('ping', function(UDPSocket $socket, Connection $connection): void {
$data = new TransferData("pong", "Hello client!");
$connection->reply($data);
});
use phuongaz\apiserve\Loader as APIServe;
APIServe::registerHandle('ping', function(UDPSocket $socket, Connection $connection): void {
$data = new TransferData("pong", "Hello client!");
$connection->reply($data);
});