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: 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 To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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 feat= ures) 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/webs= ocket/echo Asyncio: https://github.com/tavendo/AutobahnPython/tree/master/examples/asyncio/webs= ocket/echo The application code is very similar or even identical. Cheers, /Tobias