WebSocket-for-Python
WebSocket-for-Python copied to clipboard
example from client tutorial doesn't work
When using geventclient from ws4py as shown in tutorial, it blocks and doesn't let other greenlets to run.
Tutorial example: https://ws4py.readthedocs.io/en/latest/sources/clienttutorial/#gevent
Test to reproduce issue: https://gist.github.com/fried-sausage/0c645be0677359d70f72024b1d7a3e9b
mad_printer never gets a chance to run.
The solution for me was to add gevent.monkey.patch_all().
It is never mentioned in tutorial that user should monkey patch, however.