{"action":"created","issue":{"url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/30","labels_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/30/comments","events_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/30/events","html_url":"https://github.com/leancloud/js-realtime-sdk/issues/30","id":63035151,"number":30,"title":"RealtimeObject.close()之后好像heartbeat依然在运行","user":{"login":"cnjsstong2","id":4534745,"avatar_url":"https://avatars.githubusercontent.com/u/4534745?v=3","gravatar_id":"","url":"https://api.github.com/users/cnjsstong2","html_url":"https://github.com/cnjsstong2","followers_url":"https://api.github.com/users/cnjsstong2/followers","following_url":"https://api.github.com/users/cnjsstong2/following{/other_user}","gists_url":"https://api.github.com/users/cnjsstong2/gists{/gist_id}","starred_url":"https://api.github.com/users/cnjsstong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnjsstong2/subscriptions","organizations_url":"https://api.github.com/users/cnjsstong2/orgs","repos_url":"https://api.github.com/users/cnjsstong2/repos","events_url":"https://api.github.com/users/cnjsstong2/events{/privacy}","received_events_url":"https://api.github.com/users/cnjsstong2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T16:51:57Z","updated_at":"2015-03-20T07:50:55Z","closed_at":null,"body":"close之后过一段时间会重复出现以下错误：\r\n\r\n    WebSocket is already in CLOSING or CLOSED state.      \r\n    wsSend                               AV.realtime.js:348\r\n    (anonymous function)                 AV.realtime.js:368 \r\n\r\n感觉像是因为heartbeat还持续在运行。\r\n\r\n另外目前有哪个函数可以获取RealtimeObject当前的状态吗（open，closed等）？"},"comment":{"url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/comments/83944753","html_url":"https://github.com/leancloud/js-realtime-sdk/issues/30#issuecomment-83944753","issue_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/30","id":83944753,"user":{"login":"wangxiao","id":558368,"avatar_url":"https://avatars.githubusercontent.com/u/558368?v=3","gravatar_id":"","url":"https://api.github.com/users/wangxiao","html_url":"https://github.com/wangxiao","followers_url":"https://api.github.com/users/wangxiao/followers","following_url":"https://api.github.com/users/wangxiao/following{/other_user}","gists_url":"https://api.github.com/users/wangxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxiao/subscriptions","organizations_url":"https://api.github.com/users/wangxiao/orgs","repos_url":"https://api.github.com/users/wangxiao/repos","events_url":"https://api.github.com/users/wangxiao/events{/privacy}","received_events_url":"https://api.github.com/users/wangxiao/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T07:50:54Z","updated_at":"2015-03-20T07:50:54Z","body":"感谢反馈，close 之后确实有点问题，我修复一下。\r\n目前没有获取运行状态的接口，我考虑暴露一个。\r\n\r\n目前支持几个特定的事件，可以监控这个状态变化，\r\n\r\nopen 服务开启\r\nclose 服务关闭\r\nresue 正在断开重连\r\n"}}