1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
*******************
Twisted Integration
*******************
Autobahn|Python provides the following functions and classes for further Twisted integration.
Connect & Listen
================
* :func:`autobahn.twisted.websocket.connectWS`
* :func:`autobahn.twisted.websocket.listenWS`
|
Twisted Reactor
===============
* :func:`autobahn.twisted.choosereactor.install_optimal_reactor`
* :func:`autobahn.twisted.choosereactor.install_reactor`
|
Wrapping Factory & Protocol
===========================
You can find a complete example `here <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/wrapping>`__
* :class:`autobahn.twisted.websocket.WrappingWebSocketServerFactory`
* :class:`autobahn.twisted.websocket.WrappingWebSocketClientFactory`
|
Twisted Endpoints
=================
You can find a complete example `here <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_endpoints>`__
|
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 <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_site>`__
* :class:`autobahn.twisted.resource.WebSocketResource`
* :class:`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 <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_wsgi>`__
* :class:`autobahn.twisted.resource.WSGIRootResource`
|
Flash Policy Server
===================
You can find a complete example `here <https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_wsfallbacks>`__
* :class:`autobahn.twisted.flashpolicy.FlashPolicyProtocol`
* :class:`autobahn.twisted.flashpolicy.FlashPolicyFactory`
|