Async Python Web Apps with WebSockets Demo Code
Example code for my live coded demo at the January 2015 SF Python meetup and updated for Django District in March 2015.
Note: I ran this demo with gunicorn behind an Nginx reverse proxy with the appropriate WebSocket configuraiton .conf file. There can be issues upgrading the connection via the local Flask development server.
Watch the live-coded demo video for full effect. The slides are available but fair warning, they won't make much sense without corresponding audio/video.
This talk goes along with the Full Stack Python WebSockets page and Resources for WebSockets with Python blog post.