Showing
1 changed file
with
1 additions
and
9 deletions
... | @@ -19,7 +19,7 @@ db.on('error', console.error); | ... | @@ -19,7 +19,7 @@ db.on('error', console.error); |
19 | db.once('open', function () { | 19 | db.once('open', function () { |
20 | console.log('mongo db Connection'); | 20 | console.log('mongo db Connection'); |
21 | }); | 21 | }); |
22 | -var connect = mongoose.connect('mongodb://127.0.0.1:27017/cookBook', { | 22 | +var connect = mongoose.connect('mongodb://127.0.0.1:27017/test', { |
23 | useMongoClient: true, | 23 | useMongoClient: true, |
24 | }); | 24 | }); |
25 | 25 | ||
... | @@ -76,11 +76,3 @@ app.use('/auth', auth); | ... | @@ -76,11 +76,3 @@ app.use('/auth', auth); |
76 | var server = app.listen(port, function () { | 76 | var server = app.listen(port, function () { |
77 | console.log('Express listening on port', port); | 77 | console.log('Express listening on port', port); |
78 | }); | 78 | }); |
79 | - | ||
80 | -var listen = require('socket.io'); | ||
81 | -var io = listen(server); | ||
82 | -//socket io passport 접근하기 위한 미들웨어 적용 | ||
83 | -io.use(function (socket, next) { | ||
84 | - sessionMiddleWare(socket.request, socket.request.res, next); | ||
85 | -}); | ||
86 | -require('./libs/socketConnection')(io); | ... | ... |
-
Please register or login to post a comment