Switch to ws4py
Since pyramid_sockjs seems pretty unmaintained, having fallen behind gevent-websocket quite a bit, and there don't seem to be any actively maintained pyramid websocket integration libraries, switch to using ws4py directly. This change drops support for non-native websockets. As a result, we have to do our own JSON decoding of the messages. We also switch to a `gevent.pywsgi` based worker of our own. This worker combines the gevent_pywsgi worker from Gunicorn with the gevent helpers from ws4py that cleanly shutdown sockets on server termination.
Showing
This diff is collapsed.
Please register or sign in to comment