WebSocket Echo Service
This example shows how to:
- package up Autobahn-based servers (and clients) as Twisted services
- provide an application as a Twisted plugin (for
twistd
) - include static files into a package and access those in services
Resources
- http://twistedmatrix.com/documents/current/core/howto/application.html
- http://twistedmatrix.com/documents/current/core/howto/plugin.html
- http://twistedmatrix.com/documents/current/core/howto/tap.html
Running
Run the server by doing
twistd echows
and open
http://localhost:8080/
in your browser.
To activate debug output on the server, start it
twistd echows -d
This will show up all WebSocket messages exchanged between clients and server.