mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Started on node.js+socket.io+mongoDB on the backend for more responsivnes
This commit is contained in:
28
server/node_modules/mongodb/t.js
generated
vendored
Executable file
28
server/node_modules/mongodb/t.js
generated
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
// var MongoClient = require('./').MongoClient;
|
||||
|
||||
// function healthCheck(callback) {
|
||||
// MongoClient.connect('mongodb://localhost:31000,localhost:31001,localhost:31002/test', function(err, db) {
|
||||
// var r = err;
|
||||
|
||||
// // setTimeout(function() {
|
||||
// db.close(true, function(err, result) {
|
||||
// callback(r);
|
||||
// });
|
||||
// // }, 1000)
|
||||
// });
|
||||
// }
|
||||
|
||||
// function routine() {
|
||||
// healthCheck(function(r) {
|
||||
// console.log(r);
|
||||
// });
|
||||
|
||||
// setTimeout(routine, 30000);
|
||||
// }
|
||||
|
||||
// routine();
|
||||
|
||||
MongoClient.connect('mongodb://ole:ole@localhost:27017/test', function(err, db) {
|
||||
console.dir(err)
|
||||
console.dir(db)
|
||||
});
|
||||
Reference in New Issue
Block a user