WebSocket for Python 2 and 3 on Twisted and asyncio

  • Thread starter Tobias Oberstein
  • Start date
T

Tobias Oberstein

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top