WebSocket for Python 2 and 3 on Twisted and asyncio

Tobias Oberstein tobias.oberstein at tavendo.de
Fri Jan 3 07:07:52 EST 2014


Hi,

Autobahn provides open-source implementations of

* The WebSocket Protocol
* The Web Application Messaging Protocol (WAMP)

https://github.com/tavendo/AutobahnPython
https://pypi.python.org/pypi/autobahn

Starting with the release 0.7.0, Autobahn now fully supports (with all features) both

* Twisted (on Python 2/3) and
* asyncio (on Python 3.3+)

as the underlying networking framework.

Here is a complete example of WebSocket server and client:

Twisted:
https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/websocket/echo

Asyncio:
https://github.com/tavendo/AutobahnPython/tree/master/examples/asyncio/websocket/echo

The application code is very similar or even identical.

Cheers,
/Tobias



More information about the Python-list mailing list