Count the number of connections > users online
Hi guys,

I'm new in the world of the websockets and Ratchet.

I need to display, in my front, the number of users connected.
For me, it makes senses that this count as to be done when a new connection is open.
So...

```php
public function onOpen(ConnectionInterface $conn)
{
        // ....

        $count = $this->clients->count() + 1;
        $conn->countClient = $count;
        $data = json_decode($count);

        $this->clients->attach($conn);

        echo "New connection! ({$conn->resourceId})\n";
} 
```

What I struggle with, is to have this value in my front:

```javascript
function connect() {

        var conn = new WebSocket('ws://localhost:8080?token={{ user.user_id }}');

        // OPEN THE CONNECTION
        conn.onopen = function (e) {
            console.log("Connection established!", );
        };
}
```

Thanks for you help and advices
