eventlet/eventlet — pull request #22 by edwardgeorge (2013-04-04 12:56:34+00:00)
Title: alternate rfc6455 websockets from discussion in #18

the work-in-progress changes for rfc6455 websockets as discussed here https://github.com/eventlet/eventlet/pull/18 and for discussion/review (@jstasiak).
compliance with the autobahn test suite as per http://bl.ocks.org/edwardgeorge/raw/5287644/ (files used to generate: https://gist.github.com/edwardgeorge/5310096)

I had converted a few of the existing tests which I committed this morning and pushed up but as discussed in the other ticket we may want to use the autobahn testsuite for the main testing of the new protocols (autobahn doesn't support pre-00 protocols).

also as mentioned, as well as some tidying I was trying to find time to complete, it needs some docs updating.
the main addition is that a view can now also be wrapped by:

@WebSocketWSGI.configured(
supported_protocols=['chat'],
origin_checker=lambda host, origin: True)
def view(ws):
[...]

where the arguments to the `configured` decorator can declare known protocols for protocol negotiation as well as passing a function to handle the `Origin` and decide whether to accept or not. (https://github.com/edwardgeorge/eventlet/compare/websockets13#L0R199)