Hacker Newsnew | comments | show | ask | jobs | submit | kenneth_reitz's commentslogin

Not long.

-----


Surprisingly long, all things considered.

-----


This is why greenlets exist.

-----


Documentation for utilizing this with Python and Flask :)

https://devcenter.heroku.com/articles/python-websockets

-----


I've been telling them for years, they need Git-backed issues.

-----


this.

-----


Why does something have to be better to be useful?

-----


Tornado is an excellent choice for websockets, but someone shouldn't have to switch web frameworks just to support them. This works well for people who like working with Flask and have existing applications that they want to add websocket support to.

-----


Yep, totally get it. Just want to make sure people know about tornado as an option for greenfield projects.

-----


When used in conjunction with Gunicorn, this setup gets significantly more complicated, involving middlewares and monkeypatches. That's why I wrote the module :)

This also doesn't require the use of Gevent, like using gevent-websockets directly does. Anything that inserts `wsgi.websocket` into the WSGI environ will suffice here.

-----


Phones can take pictures. Why do cameras exist?

Because a phone is a shitty camera.

-----


or just let nature do its thing

-----


It wasn't pretty. Not the end of the world, though.

-----

More

Applications are open for YC Summer 2015

Guidelines | FAQ | Support | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: