title: Automatically reconnect a Python Tornado Websocket Client Connection
body: <p>I am using Python Tornado's websocket_connect function ( <a href="http://tornadokevinlee.readthedocs.org/en/latest/websocket.html" rel="nofollow">http://tornadokevinlee.readthedocs.org/en/latest/websocket.html</a> ) to listen to a websocket feed. </p>
  
  <p>Sometimes the websocket server will die, or disconnect the client (this is detectable ) and I need to figure out a way to clean up the old connection and reconnect the client. I could of course just restart the program but what is the proper way to do this through tornado? </p>