express.io
express.io copied to clipboard
Broadcasting to room from regular express http request
I was wondering why it is not possible to broadcast to a room from a regular http request handler?
app.post('/demo',
function(req,res)
{
console.log(req.io);
shows req.io
has methods only for route
and broadcast
.
Why is this? Thanks.