Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Harshan Morawaka harshan89

🎯
Focusing
Block or report user

Report or block harshan89

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Express 4 and Socket.io: Passing socket.io to routes - app.js
var app = express();
app.io = require('socket.io')();
var routes = require('./routes/index')(app.io);
app.use('/', routes);
You can’t perform that action at this time.