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