Closed GoogleCodeExporter closed 8 years ago
Hi Federico,
Sorry for the slow response!
WebSockets used to be a major pain due to limited browser support but this
should be less of an issue in July 2013. At this time, all major browsers (IE,
Firefox, Chrome, Safari, Opera) support the latest RFC 6455 standard. It even
works on iOS and Android. My gut feel would be to use WebSockets.
If you still feel that you need something more than WebSockets, I would suggest
looking at Socket.IO, which basically provides a superset of WebSockets for
older browsers. It will require quite a bit of work...
First you will have to include the Socket.IO client library in base_page.py so
that it ends up running in the browser (the easy part). Then you need a server
component that can receive Socket.IO communications to replace the
functionality of mod_pywebsocket. This can be combined with simple_server.py (a
basic server that listens on a port and speaks WebSocket), or a fancier HTTP
server (e.g. Tornado or gevent) that then has to do the work of
simple_server.py. I would look at gevent paired with gevent-socketio for the
server side.
Good luck!
Ludwig
Original comment by ludwig.s...@gmail.com
on 15 Jul 2013 at 2:48
Original issue reported on code.google.com by
ariza.fe...@gmail.com
on 5 Dec 2012 at 3:21