Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63053

WebSocket for Python 2 and 3 on Twisted and asyncio

From Tobias Oberstein <tobias.oberstein@tavendo.de>
Date 2014-01-03 04:07 -0800
Subject WebSocket for Python 2 and 3 on Twisted and asyncio
Newsgroups comp.lang.python
Message-ID <mailman.4849.1388751494.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

WebSocket for Python 2 and 3 on Twisted and asyncio Tobias Oberstein <tobias.oberstein@tavendo.de> - 2014-01-03 04:07 -0800

csiph-web