Started on node.js+socket.io+mongoDB on the backend for more responsivnes

This commit is contained in:
KasperRT
2015-04-09 00:18:13 +02:00
parent 076f8e821f
commit a8a705bd77
1889 changed files with 322175 additions and 68 deletions

28
server/node_modules/mongodb/t.js generated vendored Executable file
View 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)
});