File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.6.0 (2017-04-04)
4+
5+ * Feature: Add ` LimitingServer ` to limit and keep track of open connections
6+ (#86 by @clue )
7+
8+ ``` php
9+ $server = new Server(0, $loop);
10+ $server = new LimitingServer($server, 100);
11+
12+ $server->on('connection', function (ConnectionInterface $connection) {
13+ $connection->write('hello there!' . PHP_EOL);
14+ …
15+ });
16+ ```
17+
18+ * Feature / BC break: Add ` pause() ` and ` resume() ` methods to limit active
19+ connections
20+ (#84 by @clue )
21+
22+ ``` php
23+ $server = new Server(0, $loop);
24+ $server->pause();
25+
26+ $loop->addTimer(1.0, function() use ($server) {
27+ $server->resume();
28+ });
29+ ```
30+
331## 0.5.1 (2017-03-09)
432
533* Feature: Forward compatibility with Stream v0.5 and upcoming v0.6
Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ The recommended way to install this library is [through Composer](http://getcomp
556556This will install the latest supported version:
557557
558558``` bash
559- $ composer require react/socket:^0.5.1
559+ $ composer require react/socket:^0.6
560560```
561561
562562More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments