You now what to do..
node server.js
You can access the socket.io
object from the request object:
app.get('/nah', function(req, res) {
req.io // this is it
})
Also, note that config.js
is not exsiting. After cloning this repo, create it, and add it to .gitignore
.