From f73181afc2242710f10669279ce46d0babf18cce Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 31 Oct 2018 01:20:46 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ab9b3f6..ce67eae7 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Here is a server that closes the connection if you send it anything: $loop = React\EventLoop\Factory::create(); $socket = new React\Socket\Server('127.0.0.1:8080', $loop); -$socket->on('connection', function (ConnectionInterface $conn) { +$socket->on('connection', function (\React\Socket\ConnectionInterface $conn) { $conn->write("Hello " . $conn->getRemoteAddress() . "!\n"); $conn->write("Welcome to this amazing server!\n"); $conn->write("Here's a tip: don't say anything.\n"); @@ -82,7 +82,7 @@ send it a string: $loop = React\EventLoop\Factory::create(); $connector = new React\Socket\Connector($loop); -$connector->connect('127.0.0.1:8080')->then(function (ConnectionInterface $conn) use ($loop) { +$connector->connect('127.0.0.1:8080')->then(function (\React\Socket\ConnectionInterface $conn) use ($loop) { $conn->pipe(new React\Stream\WritableResourceStream(STDOUT, $loop)); $conn->write("Hello World!\n"); }); From 5a4bb85d29d1d07402d6496ee6f3c66857dc2718 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Mon, 12 Nov 2018 06:28:00 +0300 Subject: [PATCH 2/3] Update README.md Co-Authored-By: Big-Shark --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce67eae7..40a09732 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Here is a server that closes the connection if you send it anything: $loop = React\EventLoop\Factory::create(); $socket = new React\Socket\Server('127.0.0.1:8080', $loop); -$socket->on('connection', function (\React\Socket\ConnectionInterface $conn) { +$socket->on('connection', function (React\Socket\ConnectionInterface $conn) { $conn->write("Hello " . $conn->getRemoteAddress() . "!\n"); $conn->write("Welcome to this amazing server!\n"); $conn->write("Here's a tip: don't say anything.\n"); From 0ce71d63d02a0a2e08c41524950d58cabb294504 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Mon, 12 Nov 2018 06:28:06 +0300 Subject: [PATCH 3/3] Update README.md Co-Authored-By: Big-Shark --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40a09732..5887bd47 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ send it a string: $loop = React\EventLoop\Factory::create(); $connector = new React\Socket\Connector($loop); -$connector->connect('127.0.0.1:8080')->then(function (\React\Socket\ConnectionInterface $conn) use ($loop) { +$connector->connect('127.0.0.1:8080')->then(function (React\Socket\ConnectionInterface $conn) use ($loop) { $conn->pipe(new React\Stream\WritableResourceStream(STDOUT, $loop)); $conn->write("Hello World!\n"); });