You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
304 B
11 lines
304 B
var MongoClient = require('./').MongoClient; |
|
|
|
MongoClient.connect('mongodb://localhost:27017/test?connectTimeoutMS=999999&socketTimeoutMS=9999999', { |
|
server: { |
|
monitoring: true, |
|
haInterval: 1000 |
|
} |
|
}, function(err, db) { |
|
// console.log(db.serverConfig.connections()[0]) |
|
// db.close(); |
|
});
|
|
|