|
|
@ -2,7 +2,7 @@ var path = require('path'); |
|
|
|
var app = require('express')(); |
|
|
|
var http = require('http').Server(app); |
|
|
|
var io = require('socket.io')(http); |
|
|
|
vat MongoClient = require('mongodb').MongoClient; |
|
|
|
var MongoClient = require('mongodb').MongoClient; |
|
|
|
|
|
|
|
//const socketAuth = require('socketio-auth');
|
|
|
|
|
|
|
@ -79,6 +79,7 @@ MongoClient.connect(mongourl, function(err, database) { |
|
|
|
|
|
|
|
|
|
|
|
dbName.collection("devel_log").find({}, function(err, docs) { |
|
|
|
console.log("connected mongo"); |
|
|
|
docs.each(function(err, doc) { |
|
|
|
if(doc) { |
|
|
|
console.log(doc); |
|
|
|