File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.7.0 (2017-04-02)
4
+
5
+ * Feature / BC break: Add main ` Connector ` facade
6
+ (#93 by @clue )
7
+
8
+ The new ` Connector ` class acts as a facade for all underlying connectors,
9
+ which are now marked as "advanced usage", but continue to work unchanged.
10
+ This now makes it trivially easy to create plaintext TCP/IP, secure TLS and
11
+ Unix domain socket (UDS) connection streams simply like this:
12
+
13
+ ``` php
14
+ $connector = new Connector($loop);
15
+
16
+ $connector->connect('tls://google.com:443')->then(function (ConnectionInterface $conn) {
17
+ $conn->write("GET / HTTP/1.0\r\n\r\n");
18
+ });
19
+ ```
20
+
21
+ Optionally, it accepts options to configure all underlying connectors, such
22
+ as using a custom DNS setup, timeout values and disabling certain protocols
23
+ and much more. See the README for more details.
24
+
3
25
## 0.6.2 (2017-03-17)
4
26
5
27
* Feature / Fix: Support SNI on legacy PHP < 5.6 and add documentation for
Original file line number Diff line number Diff line change @@ -625,7 +625,7 @@ The recommended way to install this library is [through Composer](http://getcomp
625
625
This will install the latest supported version:
626
626
627
627
``` bash
628
- $ composer require react/socket-client:^0.6.2
628
+ $ composer require react/socket-client:^0.7
629
629
```
630
630
631
631
More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments