Skip to content

Commit dabe33f

Browse files
document the need to monkey patch with eventlet and gevent
1 parent 2e8ea1c commit dabe33f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/index.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ through the ``RedisManager`` class. This class takes the same arguments as
276276
``KombuManager``, but connects directly to a Redis store using the queue's
277277
pub/sub functionality::
278278

279-
280279
mgr = socketio.RedisManager('redis://')
281280
sio = socketio.Server(client_manager=mgr)
282281

@@ -294,6 +293,11 @@ of a listening thread. For example::
294293
# emit an event
295294
redis.emit('my event', data={'foo': 'bar'}, room='my room')
296295

296+
Note: when using a third party package to manage a message queue such as Redis
297+
or RabbitMQ in conjunction with eventlet or gevent, it is necessary to monkey
298+
patch the Python standard library, so that these packages access coroutine
299+
friendly library functions and classes.
300+
297301
Deployment
298302
----------
299303

0 commit comments

Comments
 (0)