diff options
Diffstat (limited to 'tests/plugins/server/socket.php')
-rw-r--r-- | tests/plugins/server/socket.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/plugins/server/socket.php b/tests/plugins/server/socket.php deleted file mode 100644 index f90dda6f..00000000 --- a/tests/plugins/server/socket.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * @var Goridge\RelayInterface $relay - */ - -use Spiral\Goridge; -use Spiral\RoadRunner; - -require dirname(__DIR__) . "/../vendor/autoload.php"; - -$relay = new Goridge\SocketRelay( - "unix.sock", - null, - Goridge\SocketRelay::SOCK_UNIX - ); - -$rr = new RoadRunner\Worker($relay); - -while ($in = $rr->waitPayload()) { - try { - $rr->respond(new RoadRunner\Payload((string)$in->body)); - } catch (\Throwable $e) { - $rr->error((string)$e); - } -} |