{"issue":{"title":"emit conn-close on connection end event.","created_at":"2011-10-20T21:29:15Z","milestone":null,"user":{"id":997618,"login":"georgeye","url":"https://api.github.com/users/georgeye","avatar_url":"https://secure.gravatar.com/avatar/f71db79586f51ba85b25cf3df4e1ef7e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f71db79586f51ba85b25cf3df4e1ef7e"},"labels":[],"updated_at":"2011-12-23T04:51:38Z","state":"open","id":2009639,"closed_at":null,"html_url":"https://github.com/astro/node-xmpp/issues/40","pull_request":{"patch_url":"https://github.com/astro/node-xmpp/pull/40.patch","html_url":"https://github.com/astro/node-xmpp/pull/40","diff_url":"https://github.com/astro/node-xmpp/pull/40.diff"},"body":"Hi Astro,\r\n\r\nI found the node-xmpp is great most of the time. One thing I think we can improve is to detect socket disconnect and report to caller. I made a little change in connection.js and it seems working for me. \r\n   Usage example of to listen 'conn-close' event at Client.\r\n   cl = new xmpp.Client()\r\n    cl.on('conn-close', function() {\r\n      console.log('connection ends');\r\n    });\r\n\r\nI think doing auto-reconnect directly at Client is also possible. Able to report disconnect looks a MUST to have to me.\r\n\r\nCheers,\r\nGeorge","number":40,"url":"https://api.github.com/repos/astro/node-xmpp/issues/40","comments":5,"assignee":null},"comment":{"created_at":"2011-12-23T04:51:38Z","user":{"id":425716,"login":"Contra","url":"https://api.github.com/users/Contra","avatar_url":"https://secure.gravatar.com/avatar/e421e88e9248d199ac126fb56941b0e3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e421e88e9248d199ac126fb56941b0e3"},"updated_at":"2011-12-23T04:51:38Z","id":3258075,"body":"Any chance of this being pulled in?","url":"https://api.github.com/repos/astro/node-xmpp/issues/comments/3258075"},"action":"created"}