Twisted WebSocket Server
$ sudo python simple_server.py
In your browser go to http://localhost:8080.
N.B.: Why sudo? It's because the simple server hosts a flash socket policy file on port 843. This is optional, of course.
This code is based off the associated branch for http://twistedmatrix.com/trac/ticket/4173, and includes support for the follwoing handshakes:
hixie-75: Safari 5
hybi-00: Chrome 4 - Chrome 13
hybi-12: Chrome 14, 15
hybi-16: Chrome 16
If using browsers that do not support WebSockets, consider using a fallabck
implementation to Flash, as seen in http://github.com/gimite/web-socket-js. The
test_server.py will also start a simple Flash Socket Policy server
and should be immediately usable with