summaryrefslogtreecommitdiff
path: root/tests/echo.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/echo.php')
-rw-r--r--tests/echo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/echo.php b/tests/echo.php
index 83eec92e..64510465 100644
--- a/tests/echo.php
+++ b/tests/echo.php
@@ -10,7 +10,7 @@ $rr = new RoadRunner\Worker($relay);
while ($in = $rr->waitPayload()) {
try {
- $rr->send((string)$in->body);
+ $rr->respond(new RoadRunner\Payload((string)$in->body));
} catch (\Throwable $e) {
$rr->error((string)$e);
}