Skip to content

Commit

Permalink
Prepare v0.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Apr 4, 2017
1 parent 390c71b commit 8bcba56
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 0.6.0 (2017-04-04)

* Feature: Add `LimitingServer` to limit and keep track of open connections
(#86 by @clue)

```php
$server = new Server(0, $loop);
$server = new LimitingServer($server, 100);

$server->on('connection', function (ConnectionInterface $connection) {
$connection->write('hello there!' . PHP_EOL);
});
```

* Feature / BC break: Add `pause()` and `resume()` methods to limit active
connections
(#84 by @clue)

```php
$server = new Server(0, $loop);
$server->pause();

$loop->addTimer(1.0, function() use ($server) {
$server->resume();
});
```

## 0.5.1 (2017-03-09)

* Feature: Forward compatibility with Stream v0.5 and upcoming v0.6
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ The recommended way to install this library is [through Composer](http://getcomp
This will install the latest supported version:

```bash
$ composer require react/socket:^0.5.1
$ composer require react/socket:^0.6
```

More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).
Expand Down

0 comments on commit 8bcba56

Please sign in to comment.