Closed halfdan closed 10 years ago
Plus 1 for this ticket I definitely Agree with halfdan's comment.
I think PeerServer should extend restify object to enable this feature (instead of keeping it in this._app
. Also this will allow export application object to grunt-express-server.
After some searching around - turns out, that restify can't be used with express.
@floatdrop there is express-resource which should allow doing similar things as restify with Express
@bergie yes, there is. I would write a pull-request to migrate from restify to express, but I don't know about repo owners thoughts on it.
I'm very positive on moving from restify to express!
As I mentioned in a separate thread, we actually switched FROM express to restify. Happy to consider switching back.
Michelle
On Thu, Apr 3, 2014 at 7:27 AM, Fabian Becker notifications@github.comwrote:
I'm very positive on moving from restify to express!
— Reply to this email directly or view it on GitHubhttps://github.com/peers/peerjs-server/issues/36#issuecomment-39457213 .
Any progress on this? Maybe allowing the PeerJS server to be mounted on just a regular HTTP Server instance?
Looking forward for this too !
Can't wait :+1:
Sorry for the delay on this--I'll try to get out an expressjs peer server this weekend.
To fix request.query for expressjs I use this express workaround:
expressApp.use(function(req, res, next){
req.query = null;
next();
})
the middlware should be first in express.
Hi, how's it going with migration?
The PeerJS server is definitely a nice piece of software, but it would be great if it could be mounted into an existing express.js application. This would allow people to build more advanced applications around the server.