WebSocket-for-Python icon indicating copy to clipboard operation
WebSocket-for-Python copied to clipboard

example from client tutorial doesn't work

Open fried-sausage opened this issue 7 years ago • 0 comments

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.

fried-sausage avatar Mar 13 '18 12:03 fried-sausage