2.0 KiB
2.0 KiB
Twisted Integration
Autobahn|Python provides the following functions and classes for further Twisted integration.
Connect & Listen
autobahn.twisted.websocket.connectWSautobahn.twisted.websocket.listenWS
Twisted Reactor
autobahn.twisted.choosereactor.install_optimal_reactorautobahn.twisted.choosereactor.install_reactor
Wrapping Factory & Protocol
You can find a complete example here
autobahn.twisted.websocket.WrappingWebSocketServerFactoryautobahn.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.WebSocketResourceautobahn.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.FlashPolicyProtocolautobahn.twisted.flashpolicy.FlashPolicyFactory