Hacker News new | ask | show | jobs
by codysoyland 4640 days ago
This looks like a thin wrapper over gevent-websocket. The code is slightly longer than the README: https://github.com/kennethreitz/flask-sockets/blob/master/fl...

Not to discredit the attempt to make gevent-websocket more accessible, but there's nothing really new here. Here's an example of using gevent-websocket with flask without this library: https://gist.github.com/lrvick/1185629

1 comments

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.