Copy from http://maxburstein.com/blog/realtime-django-using-nodejs-and-socketio/