markstory/hubot-xmpp — pull request #75 by andrewstucki (2014-11-24 22:26:09+00:00)
Title: Add client to server ping

While there are a couple of lines handling the underlying socket timeout, at least on Openfire servers, the default behavior of this adapter eventually has the hubot instance timeout and then reconnect as a client to the underlying xmpp server every few minutes (depending on the timeout configuration of the server). This fix adds in a ping so that the hubot instance will stay connected indefinitely.