mokshaproject/moksha — pull request #23 by ralphbean (2014-09-24 15:24:42+00:00)
Title: Stomp:  remember topics.

The gist is that, when the moksha hub first connects via stomp, it looks
at all the topics it is supposed to subscribe to, sends those over the
wire, then deletes that list it originally had.

Here's the bug I'm seeing:

- Startup, connect to $BROKER1
- Send subscription(s)
- Receive messages happily
- Lose connection to $BROKER1
- Connect to $BROKER2
- Wait for messages, but none arrive. I need to send subscriptions.

Now that we have the failover/reconnect stuff, it needs to remember its
own list of topics so that it can send it again when it reconnects.