summaryrefslogtreecommitdiff
path: root/tests/echo.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/echo.php')
-rw-r--r--tests/echo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/echo.php b/tests/echo.php
index 1570e3df..83eec92e 100644
--- a/tests/echo.php
+++ b/tests/echo.php
@@ -8,9 +8,9 @@ use Spiral\RoadRunner;
$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);
}