There was an error while loading. Please reload this page.
1 parent 2d39058 commit 2b3aef9Copy full SHA for 2b3aef9
1 file changed
socketio/kombu_manager.py
@@ -38,14 +38,16 @@ class KombuManager(PubSubManager): # pragma: no cover
38
name = 'kombu'
39
40
def __init__(self, url='amqp://guest:guest@localhost:5672//',
41
- channel='socketio', write_only=False):
+ channel='socketio', write_only=False, transport_options=None):
42
if kombu is None:
43
raise RuntimeError('Kombu package is not installed '
44
'(Run "pip install kombu" in your '
45
'virtualenv).')
46
super(KombuManager, self).__init__(channel=channel)
47
+ self.transport_options = transport_options
48
self.url = url
- self.writer_conn = kombu.Connection(self.url)
49
+ self.writer_conn = kombu.Connection(self.url,
50
+ transport_options=transport_options)
51
self.writer_queue = self._queue(self.writer_conn)
52
53
def _queue(self, conn=None):
0 commit comments