I'm using mognojs version 0.7.2 and socket.io, and works fine but when I don`t make queries to datatabase for a while, maybe a timeout close the connection, and after when i try to make any query again the callback response is [Error: connection closed ]
I`m added to add auto_reconnect but I get the same error
var db = require("mongojs").connect(databaseUrl, collections, {auto_reconnect:true});
Thanks for your help.