{"action":"created","issue":{"url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/24","repository_url":"https://api.github.com/repos/mishk0/slack-bot-api","labels_url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/24/comments","events_url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/24/events","html_url":"https://github.com/mishk0/slack-bot-api/issues/24","id":133991357,"number":24,"title":"Reconnect not working","user":{"login":"diego1686","id":1087468,"avatar_url":"https://avatars.githubusercontent.com/u/1087468?v=3","gravatar_id":"","url":"https://api.github.com/users/diego1686","html_url":"https://github.com/diego1686","followers_url":"https://api.github.com/users/diego1686/followers","following_url":"https://api.github.com/users/diego1686/following{/other_user}","gists_url":"https://api.github.com/users/diego1686/gists{/gist_id}","starred_url":"https://api.github.com/users/diego1686/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diego1686/subscriptions","organizations_url":"https://api.github.com/users/diego1686/orgs","repos_url":"https://api.github.com/users/diego1686/repos","events_url":"https://api.github.com/users/diego1686/events{/privacy}","received_events_url":"https://api.github.com/users/diego1686/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-02-16T14:12:15Z","updated_at":"2016-12-22T17:36:33Z","closed_at":null,"body":"Hi! I added a listener for the 'close' event in order to handle disconnections. I'm seeing the message in the logs but the bot is offline now. What I'm doing wrong? Thanks!\n\n``` javascript\n// handle disconnections\nbot.on('close', function(data){\n    console.log(\"Connection closed... Reconnecting.\")\n    bot.login();\n});\n```\n"},"comment":{"url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/comments/268850361","html_url":"https://github.com/mishk0/slack-bot-api/issues/24#issuecomment-268850361","issue_url":"https://api.github.com/repos/mishk0/slack-bot-api/issues/24","id":268850361,"user":{"login":"mishk0","id":2273012,"avatar_url":"https://avatars.githubusercontent.com/u/2273012?v=3","gravatar_id":"","url":"https://api.github.com/users/mishk0","html_url":"https://github.com/mishk0","followers_url":"https://api.github.com/users/mishk0/followers","following_url":"https://api.github.com/users/mishk0/following{/other_user}","gists_url":"https://api.github.com/users/mishk0/gists{/gist_id}","starred_url":"https://api.github.com/users/mishk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishk0/subscriptions","organizations_url":"https://api.github.com/users/mishk0/orgs","repos_url":"https://api.github.com/users/mishk0/repos","events_url":"https://api.github.com/users/mishk0/events{/privacy}","received_events_url":"https://api.github.com/users/mishk0/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T17:36:33Z","updated_at":"2016-12-22T17:36:33Z","body":"Thanks for the issue. What `data` is coming with a `close` event? Because when I try to emulate it and close a websocket manually, `login()` works fine."}}
{"actor":{"display_login":"mishk0"}}