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

Not long.

-----

yen223 242 days ago | link

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.

-----

DrJ 282 days ago | link

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.

-----

m0th87 283 days ago | link

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

Guidelines | FAQ | Lists | Bookmarklet | DMCA | News News | Bugs and Feature Requests | Y Combinator | Apply | Library | Contact

Search: