transport = 'udp'; $worker->onMessage = function($connection, $data){ echo $data; echo $connection->getRemoteIp(); }; Worker::runAll();