I am using [socket.io-adapter-mongo](https://github.com/modit/socket.io-adapter-mongo) to make it possible to create balance loader in my app. In addition to that I want to use mongoose to manage db. If I use the api that the two packages give is

### socket.io-adapter-mongo

```
var io = require('socket.io')(3000);
var mongo = require('socket.io-adapter-mongo');
io.adapter(mongo({ host: 'localhost', port: 27017, db: 'mubsub' }));

```

### mongoose

```
mongoose.connect('mongodb://user:pass@localhost:port/database');

```

So if I want to use both of them, do I have to connect to the db twice?
Or that is a way to use them with one connection?

Thanks