Skip to content

Commit

Permalink
minor documentation improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Aug 5, 2016
1 parent 024609e commit c52f4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ the ``write_only`` argument should be set to ``True`` to disable the creation
of a listening thread. For example::

# connect to the redis queue through Kombu
redis = socketio.KombuManager('redis://', write_only=True)
external_sio = socketio.KombuManager('redis://', write_only=True)
# emit an event
redis.emit('my event', data={'foo': 'bar'}, room='my room')
external_sio.emit('my event', data={'foo': 'bar'}, room='my room')

Note: when using a third party package to manage a message queue such as Redis
or RabbitMQ in conjunction with eventlet or gevent, it is necessary to monkey
Expand Down

0 comments on commit c52f4f6

Please sign in to comment.