<?php /** * @var Goridge\RelayInterface $relay */ use Spiral\Goridge; use Spiral\RoadRunner; $rr = new RoadRunner\Worker($relay); while ($in = $rr->receive($ctx)) { try { $rr->send((string)$in); } catch (\Throwable $e) { $rr->error((string)$e); } }
info at phpclasses dot org