diff --git a/README.md b/README.md
index 0adc0fb1..adfd7c3d 100644
--- a/README.md
+++ b/README.md
@@ -23,17 +23,13 @@ client/server and interaction with processes. Third-party libraries can use thes
components to create async network clients/servers and more.
```php
-$server = new React\Http\Server(function (Psr\Http\Message\ServerRequestInterface $request) {
- return new React\Http\Message\Response(
- 200,
- array(
- 'Content-Type' => 'text/plain'
- ),
+$server = new React\Http\HttpServer(function (Psr\Http\Message\ServerRequestInterface $request) {
+ return React\Http\Message\Response::plaintext(
"Hello World!\n"
);
});
-$socket = new React\Socket\Server('127.0.0.1:8080');
+$socket = new React\Socket\SocketServer('127.0.0.1:8080');
$server->listen($socket);
echo "Server running at http://127.0.0.1:8080" . PHP_EOL;
diff --git a/composer.json b/composer.json
index 1045b721..b3706086 100644
--- a/composer.json
+++ b/composer.json
@@ -12,11 +12,11 @@
"react/cache": "^1.0",
"react/dns": "^1.8",
"react/event-loop": "^1.2",
- "react/http": "^1.4",
+ "react/http": "^1.6",
"react/promise": "^2.1 || ^1.2",
"react/promise-stream": "^1.1.1",
"react/promise-timer": "^1.7",
- "react/socket": "^1.8",
+ "react/socket": "^1.9",
"react/stream": "^1.2"
},
"require-dev": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 69bbf0ea..2b235aaa 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -6,6 +6,8 @@
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: