react-php/react — pull request #16 by cboden (2012-05-12 18:36:42+00:00)
Title: Get remote address on connection

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Tests pass: yes

Added the method `getRemoteAddress` to `ConnectionInterface` and `Connection`
This retrieves the IP address of the connected client

```php
on('connect', function($conn) {
echo $conn->getRemoteAddress();
// 127.0.0.1
});
```