{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/3494","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/3494/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/3494/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/3494/events","html_url":"https://github.com/balderdashy/sails/issues/3494","id":126847100,"number":3494,"title":"Sockets:  `sails.sockets.subscribers()` returns unexpected results when using socket.io-redis","user":{"login":"chrizz1001","id":260550,"avatar_url":"https://avatars.githubusercontent.com/u/260550?v=3","gravatar_id":"","url":"https://api.github.com/users/chrizz1001","html_url":"https://github.com/chrizz1001","followers_url":"https://api.github.com/users/chrizz1001/followers","following_url":"https://api.github.com/users/chrizz1001/following{/other_user}","gists_url":"https://api.github.com/users/chrizz1001/gists{/gist_id}","starred_url":"https://api.github.com/users/chrizz1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrizz1001/subscriptions","organizations_url":"https://api.github.com/users/chrizz1001/orgs","repos_url":"https://api.github.com/users/chrizz1001/repos","events_url":"https://api.github.com/users/chrizz1001/events{/privacy}","received_events_url":"https://api.github.com/users/chrizz1001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/sails/labels/bug","name":"bug","color":"b11420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-15T10:29:49Z","updated_at":"2016-01-20T11:24:26Z","closed_at":"2016-01-20T11:24:25Z","body":"I build up a socket connection between server and client (website). The Socket gets up and running, communication is ok. When I try to join a user to a room, the room gets created but remains empty (no users inside). Broadcasting global works.\r\n\r\nconfig:\r\n\r\n```\r\n// proxy setup as it will run in cluster mode/LB later\r\n  port: process.env.PORT || 4000,\r\n  host: '0.0.0.0',\r\n  explicitHost: '0.0.0.0',\r\n\r\n  proxyHost: 'my_sails_server.de',\r\n  proxyPort: 4000,\r\n\r\n// SSL driven, but same behavior without\r\n  http: {\r\n    serverOptions: {\r\n      key: require('fs').readFileSync('/etc/httpd/ssl/my_sails_server.de.key'),\r\n      cert: require('fs').readFileSync('/etc/httpd/ssl/my_sails_server.de.crt')\r\n    }\r\n  },\r\n  ssl: {\r\n    key: require('fs').readFileSync('/etc/httpd/ssl/my_sails_server.de.key'),\r\n    cert: require('fs').readFileSync('/etc/httpd/ssl/my_sails_server.de.crt')\r\n  },\r\n\r\n  sockets: {\r\n     //adapter: 'memory' // with this config it works\r\n     adapter: 'redis' // not working\r\n  },\r\n```\r\n\r\nController Action:\r\n```\r\nmodule.exports = {\r\n  setSocket: function (req, res) {\r\n      var globalRoomName = 'globalRoom123';\r\n\r\n      sails.sockets.join(req.socket.id, globalRoomName);\r\n//      sails.sockets.join(req.socket, globalRoomName); // same behavior\r\n\r\n      console.log('Subscribers in the global room:', sails.sockets.subscribers(globalRoomName)); // adapter 'memory': [\"socket_id_of_user\"]  |  adapter 'redis': []\r\n  }\r\n}\r\n```\r\n\r\nI am using:\r\n\r\n    \"sails\": \"~0.11.4\",\r\n    \"sails-redis\": \"^0.10.6\",\r\n\r\non a CentOS 7.2 mashine running node 5.4.1 (also tested with 4.x, 0.12.x, same behavior)\r\nand on os x El Capitan node 5.4.1 (also tested with 4.x, 0.12.x, same behavior)\r\n\r\nTested with one instance (`sails lift`)"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/173176444","html_url":"https://github.com/balderdashy/sails/issues/3494#issuecomment-173176444","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/3494","id":173176444,"user":{"login":"chrizz1001","id":260550,"avatar_url":"https://avatars.githubusercontent.com/u/260550?v=3","gravatar_id":"","url":"https://api.github.com/users/chrizz1001","html_url":"https://github.com/chrizz1001","followers_url":"https://api.github.com/users/chrizz1001/followers","following_url":"https://api.github.com/users/chrizz1001/following{/other_user}","gists_url":"https://api.github.com/users/chrizz1001/gists{/gist_id}","starred_url":"https://api.github.com/users/chrizz1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrizz1001/subscriptions","organizations_url":"https://api.github.com/users/chrizz1001/orgs","repos_url":"https://api.github.com/users/chrizz1001/repos","events_url":"https://api.github.com/users/chrizz1001/events{/privacy}","received_events_url":"https://api.github.com/users/chrizz1001/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T11:24:25Z","updated_at":"2016-01-20T11:24:25Z","body":"@mikermcneil  Thanks for the note, that is exactly my case! reading over the other thread..."}}