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.
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.
I'll have to think about the best way to integrate this in, but I like the sounds of it.
See #506, though I didn't consider routing based on requested protocol.
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.