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