The websocket implementation as a standalone wrapper for Twisted protocols (available at http://paste.pocoo.org/show/451569/ ) allows us to make a twisted protocols available over websocket
I wrote a new class in order to provide this behaviour too and I submitted in theses commits
3cf7b7c → class implementation
9b32bcf → example of use
I don't know how to write tests for it, so, sorry, there are no tests for this newer class.
new class WebSocketFactory
Factory which wraps another factory to provide WebSockets transports for
all of its protocols.
Example of wrapping a simple Echo Protocol
undo comment flash policy server