{"action":"closed","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/237","labels_url":"https://api.github.com/repos/luin/ioredis/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/237/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/237/events","html_url":"https://github.com/luin/ioredis/issues/237","id":128884219,"number":237,"title":"How to get slaves info from sentinel?","user":{"login":"nichliu","id":4934001,"avatar_url":"https://avatars.githubusercontent.com/u/4934001?v=3","gravatar_id":"","url":"https://api.github.com/users/nichliu","html_url":"https://github.com/nichliu","followers_url":"https://api.github.com/users/nichliu/followers","following_url":"https://api.github.com/users/nichliu/following{/other_user}","gists_url":"https://api.github.com/users/nichliu/gists{/gist_id}","starred_url":"https://api.github.com/users/nichliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nichliu/subscriptions","organizations_url":"https://api.github.com/users/nichliu/orgs","repos_url":"https://api.github.com/users/nichliu/repos","events_url":"https://api.github.com/users/nichliu/events{/privacy}","received_events_url":"https://api.github.com/users/nichliu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-26T17:19:33Z","updated_at":"2016-01-27T16:47:35Z","closed_at":"2016-01-27T16:47:35Z","body":"I would like to get slaves nodes info from sentinel\r\n\r\ncommand line is working\r\n```\r\nredis-cli -h x.x.x.x -p 26379 sentinel slaves r1\r\n```\r\n\r\nbut\r\n```javascript\r\nvar redis = new Redis({\r\n    sentinels: [{ host: 'x.x.x.x', port: 26379 }, { host: 'x.x.x.x', port: 26379 }],\r\n    name: 'r1'\r\n});\r\nredis.sentinel([\"slaves\",\"r1\"],function(err,rs){\r\n    if(err) console.log(err);\r\n    console.log(rs);\r\n});\r\n```\r\nis not working."}}