File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.7.0 (2017-04-10)
4+
5+ * Feature: Merge SocketClient component into this component
6+ (#87 by @clue )
7+
8+ This means that this package now provides async, streaming plaintext TCP/IP
9+ and secure TLS socket server and client connections for ReactPHP.
10+
11+ ```
12+ $connector = new React\Socket\Connector($loop);
13+ $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) {
14+ $connection->write('…');
15+ });
16+ ```
17+
18+ Accordingly, the ` ConnectionInterface ` is now used to represent both incoming
19+ server side connections as well as outgoing client side connections.
20+
21+ If you've previously used the SocketClient component to establish outgoing
22+ client connections, upgrading should take no longer than a few minutes.
23+ All classes have been merged as-is from the latest ` v0.7.0 ` release with no
24+ other changes, so you can simply update your code to use the updated namespace
25+ like this:
26+
27+ ``` php
28+ // old from SocketClient component and namespace
29+ $connector = new React\SocketClient\Connector($loop);
30+ $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) {
31+ $connection->write('…');
32+ });
33+
34+ // new
35+ $connector = new React\Socket\Connector($loop);
36+ $connector->connect('google.com:80')->then(function (ConnectionInterface $conn) {
37+ $connection->write('…');
38+ });
39+ ```
40+
341## 0.6.0 (2017-04-04)
442
543* Feature: Add ` LimitingServer ` to limit and keep track of open connections
Original file line number Diff line number Diff line change @@ -1064,7 +1064,7 @@ The recommended way to install this library is [through Composer](http://getcomp
10641064This will install the latest supported version:
10651065
10661066``` bash
1067- $ composer require react/socket:^0.6
1067+ $ composer require react/socket:^0.7
10681068```
10691069
10701070More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments