losandes / socket.io-mongodb

A MongoDB Adapter for socket.io
MIT License
25 stars 8 forks source link

Adding custom objects #5

Open thenitai opened 8 years ago

thenitai commented 8 years ago

Hi there,

Thank you for the library. Works great.

Would it be possible to add custom objects to the document? I'm asking because I like to record a user_id and the socket.id. I can do it with an additional collection, but since your library is already connecting to the DB, I figured it could be done at the same time.

Makes sense? Possible?

Thank you.