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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tobias.oberstein@tavendo.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'url:pypi': 0.03; 'open- source': 0.04; 'subject:Python': 0.06; 'framework.': 0.09; 'url:github': 0.09; 'python': 0.11; 'client:': 0.16; 'twisted': 0.16; 'underlying': 0.16; 'example': 0.22; 'to:name:python- list@python.org': 0.22; 'cheers,': 0.24; 'code': 0.31; '(on': 0.31; 'received:169.254': 0.32; 'url:python': 0.33; 'charset:us- ascii': 0.36; 'hi,': 0.36; 'similar': 0.36; 'url:org': 0.36; 'received:169': 0.37; 'application': 0.37; 'starting': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'release': 0.40; 'even': 0.60; 'complete': 0.62; 'received:206': 0.63; 'networking': 0.64; 'here': 0.66; 'messaging': 0.68; 'url:master': 0.84
From Tobias Oberstein <tobias.oberstein@tavendo.de>
To "python-list@python.org" <python-list@python.org>
Date Fri, 3 Jan 2014 04:07:52 -0800
Subject WebSocket for Python 2 and 3 on Twisted and asyncio
Thread-Topic WebSocket for Python 2 and 3 on Twisted and asyncio
Thread-Index Ac8IfGBFn+Cnx+02R4609GYUakBNQA==
Accept-Language de-DE, en-US
Content-Language de-DE
X-MS-Has-Attach
X-MS-TNEF-Correlator
acceptlanguage de-DE, en-US
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4849.1388751494.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388751495 news.xs4all.nl 2940 [2001:888:2000:d::a6]:42244
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63053

Show key headers only | 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