Skip to content

Commit

Permalink
Minor amends
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Mar 11, 2013
1 parent 3968627 commit 24f065e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
@@ -1,14 +1,11 @@
var sio = require('socket.io');
var fn = function () {};
var http = require('http');
var ControllerBridge = require('compound/lib/controller-bridge');

exports.init = function (compound) {

var app = compound.app;
var server = http.createServer(app);
compound.server = server;
var io = sio.listen(server);
var io = sio.listen(compound.server);

// You can configure socket.io at this point.
compound.emit('socket.io', io);
Expand Down Expand Up @@ -59,6 +56,7 @@ exports.init = function (compound) {
cookieParser(req, null, function (err) {
if (err) return accept('Error in cookie parser', false);
session(req, {on: fn, end: fn}, function (err) {
if (err) return accept('Error while reading session', false);
accept(null, true);
});
});
Expand Down

0 comments on commit 24f065e

Please sign in to comment.