Files
deb-python-autobahn/examples/twisted/websocket/echo_site_tls
Tobias Oberstein 9d4e720276 improve examples
2014-01-15 12:53:17 +01:00
..
2013-12-23 00:13:34 +01:00
2014-01-15 12:53:17 +01:00
2013-12-23 00:13:34 +01:00
2013-12-29 22:25:22 +01:00

WebSocket TLS Echo Server as Twisted Web Resource

This is a variant of a basic WebSocket Echo server that is running as a Twisted Web Resource and under TLS (that is HTTPS for Web, and WSS for WebSocket).

Running

Run the server by doing

python server.py

and open

https://localhost:8080/

in your browser.

To activate debug output on the server, start it

python server.py debug

This will show up all WebSocket messages exchanged between clients and server.