Commits

Benjamin Smith committed ccbd44f

Add note in example code about how to keep queues persistent and durable in rabbitmq.

  • Participants
  • Parent commits 9115124
  • Tags stompy-0.1.5

Comments (0)

Files changed (1)

File examples/stomp_example.py

         print("Cannot connect")
         raise
 
+    # If using RabbitMQ, the queue seems to 'disappear' 
+    # after disconnecting a consumer, to make the queue persistent
+    # add the headers 'auto-delete': 'false' and 'durable': 'true'
+    # to the dictionary below
     stomp.subscribe({'destination': queue, 'ack': 'client'})
 
     if not num: