title: python - reconnect stomp connection when dead
body: <p>As per the <a href="http://jasonrbriggs.github.io/stomp.py/api.html#establishing-a-connection" rel="nofollow noreferrer">documentation</a>, given that I've instantiated a connection:</p>
  
  <pre><code>&gt;&gt;&gt; import stomp
  &gt;&gt;&gt; c = stomp.Connection([('127.0.0.1', 62615)])
  &gt;&gt;&gt; c.start()
  &gt;&gt;&gt; c.connect('admin', 'password', wait=True)
  </code></pre>
  
  <p>How do I monitor it so that it reconnects on <code>c.is_connected == False</code>?</p>
  
  <pre><code>&gt;&gt;&gt; reconnect_on_dead_connection(c)
  ...
  &gt;&gt;&gt; [1479749503] reconnected dead connection
  </code></pre>