Files
deb-python-autobahn/doc/twistedintegration.rst
2014-01-01 23:12:50 +01:00

2.3 KiB

Twisted Integration

Autobahn|Python provides the following functions and classes for further Twisted integration.

Connect & Listen

autobahn.twisted.websocket.connectWS

autobahn.twisted.websocket.listenWS

Twisted Reactor

autobahn.twisted.choosereactor.install_optimal_reactor

autobahn.twisted.choosereactor.install_reactor

Wrapping Factory & Protocol

You can find a complete example here

autobahn.twisted.websocket.WrappingWebSocketServerFactory

autobahn.twisted.websocket.WrappingWebSocketClientFactory

Twisted Endpoints

You can find a complete example here

Twisted Web & WSGI

AutobahnPython provides integration with Twisted Web via a special WebSocketResource that can be added to Twisted Web resource hierarchies.

You can find a complete example here

autobahn.twisted.resource.WebSocketResource

autobahn.twisted.resource.HTTPChannelHixie76Aware

The Twisted Web support of AutobahnPython also allows you add WebSocket as part of a WSGI application that runs under Twisted.

You can find a complete example here

autobahn.twisted.resource.WSGIRootResource

Flash Policy Server

You can find a complete example here

autobahn.twisted.flashpolicy.FlashPolicyProtocol

autobahn.twisted.flashpolicy.FlashPolicyFactory