express.io
express.io copied to clipboard
Support for Express.JS Router & Express.IO Routing
Express Routing (implemented through mean.io stack):
app.route('/direction').get(direction.all).post(direction.create);
app.io.route('connection', function(req){
[...]
});
When attempting to use this, the router for express.io will override and not allow the original express.js routing Router.
I've attempting adding a prototype of Router to app without success too. Any suggestions?
I have the same issue (up?)
Same issue, anybody found a workaround ?
Using everything just via app.VERB seems to be working fine for me. I'm not too familiar with Express but the docs seem to indicate you should be looking at app.routes rather than app.route.
Also, I think you might be trying to use a feature of Express 4.
Same issue! So confusing ...
How can I use express.Router() in express.io
Same issue... Docs mention the original routes should work. Doesn't seem to be the case.
TypeError: Property 'route' of object function app(req, res, next){ app.handle(req, res, next); } is not a function
I think narthur157 is right. I'm using express 4, just looked at the package.json and it's for "express": "~3.4.0",
+1
also update the npm
"How can I use express.Router() in express.io"
+1
+1, require('express.io').Router()
returns undefined
with express 4.13.3 and express.io 1.1.13!
+1
+1
+1
+1