diff options
Diffstat (limited to 'plugins/server/tests/socket.php')
-rw-r--r-- | plugins/server/tests/socket.php | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/server/tests/socket.php b/plugins/server/tests/socket.php deleted file mode 100644 index 1b76481a..00000000 --- a/plugins/server/tests/socket.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * @var Goridge\RelayInterface $relay - */ - -use Spiral\Goridge; -use Spiral\RoadRunner; - -require dirname(__DIR__) . "/../../tests/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->send((string)$in->body); - } catch (\Throwable $e) { - $rr->error((string)$e); - } -} |