** aiohttp now supports in its webframework websocket **
http://aiohttp.readthedocs.org/en/v0.14.1/web.html#websockets
This is a quick hack (ported from django-c10k) to get websocket working along side classic http with aiohttp web server. I think it would be better to inherit the aiohttp.web.RequestHandler and add the code to handle the upgrade in RequestHandler.start instead of overriding RequestHandler.transport.close in WebsocketResponse.
Anyway, it seems like it works.
requirements: