I\'m using Express with Socket.io but I can\'t figure out how to use SocKet.io in Express routes.
I end up doing this in \"app.js\"
... ... // devel
You can use simple middleware before routes, and then use in res object
app.use((req, res, next) => { res.io = io next() })