{"action":"created","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/277","repository_url":"https://api.github.com/repos/luin/ioredis","labels_url":"https://api.github.com/repos/luin/ioredis/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/277/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/277/events","html_url":"https://github.com/luin/ioredis/issues/277","id":146034035,"number":277,"title":"[question] Disconnect from cluster","user":{"login":"devnetf","id":4071282,"avatar_url":"https://avatars.githubusercontent.com/u/4071282?v=3","gravatar_id":"","url":"https://api.github.com/users/devnetf","html_url":"https://github.com/devnetf","followers_url":"https://api.github.com/users/devnetf/followers","following_url":"https://api.github.com/users/devnetf/following{/other_user}","gists_url":"https://api.github.com/users/devnetf/gists{/gist_id}","starred_url":"https://api.github.com/users/devnetf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnetf/subscriptions","organizations_url":"https://api.github.com/users/devnetf/orgs","repos_url":"https://api.github.com/users/devnetf/repos","events_url":"https://api.github.com/users/devnetf/events{/privacy}","received_events_url":"https://api.github.com/users/devnetf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T16:03:23Z","updated_at":"2016-04-07T17:09:40Z","closed_at":null,"body":"Hello,\r\n         I have the following test code: \r\n        `cluster.get('status').then(function(res){\r\n     console.log(res);\r\n     console.log(cluster.status);\r\n     cluster.disconnect(); \r\n});\r\n\r\nsetInterval(function(){\r\n    console.log(cluster.status);\r\n}, 1000);`\r\n\r\nAfter cluster.disconnect(); is called, cluster.status still give me \"ready\". How should I disconnect from the cluster? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/luin/ioredis/issues/comments/206997529","html_url":"https://github.com/luin/ioredis/issues/277#issuecomment-206997529","issue_url":"https://api.github.com/repos/luin/ioredis/issues/277","id":206997529,"user":{"login":"devnetf","id":4071282,"avatar_url":"https://avatars.githubusercontent.com/u/4071282?v=3","gravatar_id":"","url":"https://api.github.com/users/devnetf","html_url":"https://github.com/devnetf","followers_url":"https://api.github.com/users/devnetf/followers","following_url":"https://api.github.com/users/devnetf/following{/other_user}","gists_url":"https://api.github.com/users/devnetf/gists{/gist_id}","starred_url":"https://api.github.com/users/devnetf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnetf/subscriptions","organizations_url":"https://api.github.com/users/devnetf/orgs","repos_url":"https://api.github.com/users/devnetf/repos","events_url":"https://api.github.com/users/devnetf/events{/privacy}","received_events_url":"https://api.github.com/users/devnetf/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T17:09:40Z","updated_at":"2016-04-07T17:09:40Z","body":"Thanks for the quick reply. I am not sure about the cluster setup because it is our system admins who set it up. However, when I change the version to \"1.15.1\". The exact same code works. Could it be a bug in v2.0.0? "}}