Re: Websockets

Tobias Oberstein <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
> 
> There is also a project called Autobahn but it is not integrated with
twisted.web (so one cannot serve
> standard HTTP and websockets from the same service out of the box) and was 

No, you can use Autobahn with Twisted Web

https://github.com/tavendo/AutobahnPython/tree/master/examples/

=> websocket/echo_site

and with WSGI (i.e. Flask)

https://github.com/tavendo/AutobahnPython/tree/master/examples/

=> websocket/echo_wsgi

Both does work with TLS and also supports not only Hybi-10+, RFC6455,
but also Hixie-76 variants of WebSocket.

> designed first to be a test suite
> for the development of the protocol.

No, the testsuite is a side project for Autobahn. Autobahn was designed to
provide first-class WebSocket client and server support for Twisted.

The testsuite has evolved into a "quasi industry standard": most projects
use it to test for protocol compliance.

Autobahn also provides RPC and PubSub on top of WebSocket: http://wamp.ws/.
This is an officially registered WebSocket subprotocol and has
implementations outside Twisted .. including 3rd party ones.

Cheers,
Tobias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.