Try to maintain connection to XMPP server
Try to maintain connection to XMPP server

Prosody disconnects a component if it doesn't send any content for 6
hours. Eventually I'll have the component send keep alive messages.
Until then, this primitive retry mechanism makes sure we have a
connection to the server.

I added the sleep because I don't want to pound the XMPP server too
hard if it's having trouble.  This is a poor solution but should hold
us over until I can implement an exponential back-off retry algorithm.

mndrix/sms-over-xmpp