Support for dispatching 'upgrade' events #61

Closed
pgriess opened this Issue Jul 19, 2010 · 4 comments

Comments

Projects
None yet
4 participants

pgriess commented Jul 19, 2010

The 'upgrade' event fired from http.Server comes with a request object. It'd be nice to be able to create middleware stacks for handling these events.

pgriess commented Jul 19, 2010

Events should be able to be routed based on path just like standard HTTP request. Being able to filter based on supported protocols would also be awesome.

Owner

creationix commented Jul 19, 2010

I'll have to think about the best way to integrate this in, but I like the sounds of it.

stephank commented Mar 9, 2012

See #506, though I didn't consider routing based on requested protocol.

Contributor

jonathanong commented Oct 18, 2013

hopefully node v0.12 will make things easier, we can revisit this when it arrives. either way, i don't think people should be using connect as a http server, only as a request handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment