diff options
Diffstat (limited to 'plugins/server/tests/tcp.php')
-rw-r--r-- | plugins/server/tests/tcp.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/server/tests/tcp.php b/plugins/server/tests/tcp.php index 2d6fb00a..c567c982 100644 --- a/plugins/server/tests/tcp.php +++ b/plugins/server/tests/tcp.php @@ -6,15 +6,15 @@ use Spiral\Goridge; use Spiral\RoadRunner; -require dirname(__DIR__) . "/../../vendor_php/autoload.php"; +require dirname(__DIR__) . "/../../tests/vendor/autoload.php"; $relay = new Goridge\SocketRelay("localhost", 9999); $rr = new RoadRunner\Worker($relay); -while ($in = $rr->receive($ctx)) { +while ($in = $rr->waitPayload()) { try { - $rr->send((string)$in); + $rr->send((string)$in->body); } catch (\Throwable $e) { $rr->error((string)$e); } -}
\ No newline at end of file +} |