#Chattr
Chat with strangers. A simple chat app that demonstrates gevent-socketio on flask with backbone.js.
##Requirements
libevent-dev (if I recall it correctly; needed for gevent)
##Setup
python setup.py develop
##Running
chattr.run
It will run on host 0.0.0.0:53000 (or localhost:53000).
##Deployment
What currently runs the live demo server is HAProxy, Nginx and Gunicorn. HAProxy checks if it's a regular connection or a websocket connection then passes it to Nginx and to gunicorn respectively.
Another option would be to use Nginx and patch it with the TCP Proxy Module.
Thing is: Nginx doesn't support websockets yet and it removes it in the headers thus a KeyError (socketio_manage method)
On Multiple Workers: You need to configure socketio to use RedisStore (haven't tried it yet on gevent-socketio) as https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO
##Other cool stuff
DevQus, a pyramid-based that uses Server-Side Events (instead of websockets/socketio)