{"action":"created","issue":{"url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/2","labels_url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/2/comments","events_url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/2/events","html_url":"https://github.com/shogo82148/p5-AnySan-Provider-Slack/pull/2","id":111606738,"number":2,"title":"shorten ping interval","user":{"login":"laouji","id":2435916,"avatar_url":"https://avatars.githubusercontent.com/u/2435916?v=3","gravatar_id":"","url":"https://api.github.com/users/laouji","html_url":"https://github.com/laouji","followers_url":"https://api.github.com/users/laouji/followers","following_url":"https://api.github.com/users/laouji/following{/other_user}","gists_url":"https://api.github.com/users/laouji/gists{/gist_id}","starred_url":"https://api.github.com/users/laouji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laouji/subscriptions","organizations_url":"https://api.github.com/users/laouji/orgs","repos_url":"https://api.github.com/users/laouji/repos","events_url":"https://api.github.com/users/laouji/events{/privacy}","received_events_url":"https://api.github.com/users/laouji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T12:31:57Z","updated_at":"2015-10-16T11:14:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/pulls/2","html_url":"https://github.com/shogo82148/p5-AnySan-Provider-Slack/pull/2","diff_url":"https://github.com/shogo82148/p5-AnySan-Provider-Slack/pull/2.diff","patch_url":"https://github.com/shogo82148/p5-AnySan-Provider-Slack/pull/2.patch"},"body":"The client sometimes times out because it is not pinging frequently enough to get valid websocket urls.\r\n\r\n`EV: error in callback (ignoring): Cannot send because the connection is finished at /home/app/perl5/perl-5.16.3/lib/site_perl/5.16.3/AnySan/Provider/Slack.pm line 43`\r\n\r\nAccording to the [documentation](https://api.slack.com/rtm) : The Websocket URLs provided by rtm.start are single-use and are only valid for 30 seconds\r\n"},"comment":{"url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/comments/148686598","html_url":"https://github.com/shogo82148/p5-AnySan-Provider-Slack/pull/2#issuecomment-148686598","issue_url":"https://api.github.com/repos/shogo82148/p5-AnySan-Provider-Slack/issues/2","id":148686598,"user":{"login":"shogo82148","id":1157344,"avatar_url":"https://avatars.githubusercontent.com/u/1157344?v=3","gravatar_id":"","url":"https://api.github.com/users/shogo82148","html_url":"https://github.com/shogo82148","followers_url":"https://api.github.com/users/shogo82148/followers","following_url":"https://api.github.com/users/shogo82148/following{/other_user}","gists_url":"https://api.github.com/users/shogo82148/gists{/gist_id}","starred_url":"https://api.github.com/users/shogo82148/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogo82148/subscriptions","organizations_url":"https://api.github.com/users/shogo82148/orgs","repos_url":"https://api.github.com/users/shogo82148/repos","events_url":"https://api.github.com/users/shogo82148/events{/privacy}","received_events_url":"https://api.github.com/users/shogo82148/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T11:14:43Z","updated_at":"2015-10-16T11:14:43Z","body":"Thank you, but I think you misunderstood the documentation.\r\n\r\n英語で正確に伝える自信がないので、申し訳ないですが日本語で・・・\r\n\r\nSlackRTMを開始するには、A. rtm.startというAPIを叩いたあとに、B. websocketのコネクションを張る必要があります。\r\nドキュメントの「30秒」というのは「Bのタイムアウト時間」ではなく「AとBを実行する間隔」だという認識です。\r\n\r\nタイムアウト時間は特にドキュメント化されていないようなので、この設定で実際に問題が解消したのかが知りたいです。"}}