0

I need a scenario where one node send a message and another node starts waiting to get the message.

Each node after getting message sent turns into listener and after receiving message it turns into publisher again.

pinepain
  • 12,453
  • 3
  • 60
  • 65
sayan
  • 501
  • 2
  • 7
  • 21

1 Answers1

0

Look on this RPC example. You will have to slightly modify it to exit listening and start publishing.

pinepain
  • 12,453
  • 3
  • 60
  • 65
  • 1
    using channel.start_consuming() and channel.stop_consuming() at the subscriber method resolved the issue. – sayan Jan 16 '14 at 12:59