{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/4195","repository_url":"https://api.github.com/repos/balderdashy/sails","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/4195/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/4195/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/4195/events","html_url":"https://github.com/balderdashy/sails/issues/4195","id":261307278,"number":4195,"title":"Sails sockets are not broadcasting messages from the socket.io-emitter","user":{"login":"istrau2","id":8128572,"avatar_url":"https://avatars0.githubusercontent.com/u/8128572?v=4","gravatar_id":"","url":"https://api.github.com/users/istrau2","html_url":"https://github.com/istrau2","followers_url":"https://api.github.com/users/istrau2/followers","following_url":"https://api.github.com/users/istrau2/following{/other_user}","gists_url":"https://api.github.com/users/istrau2/gists{/gist_id}","starred_url":"https://api.github.com/users/istrau2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istrau2/subscriptions","organizations_url":"https://api.github.com/users/istrau2/orgs","repos_url":"https://api.github.com/users/istrau2/repos","events_url":"https://api.github.com/users/istrau2/events{/privacy}","received_events_url":"https://api.github.com/users/istrau2/received_events","type":"User","site_admin":false},"labels":[{"id":335017164,"url":"https://api.github.com/repos/balderdashy/sails/labels/Needs%20cleanup","name":"Needs cleanup","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-28T12:52:43Z","updated_at":"2017-09-28T12:52:59Z","closed_at":null,"author_association":"NONE","body":"**Sails version**: 0.12.11\r\n**Node version**: 8.6.0\r\n**NPM version**: 5+\r\n**DB adapter name**: Sequelize\r\n**DB adapter version**: 4.7.5\r\n**Operating system**: windows\r\n\r\n<!--\r\n### END VERSION INFO ###\r\n======================================================\r\nGREAT! - Now read carefully\r\n(Sailsbot will know if you don't)!\r\n======================================================\r\n\r\nBefore you submit an issue for Sails, please make sure you have read the issue contribution guide (http://bit.ly/sails-issue-guide) carefully, and then verify the following by typing an X in between each set of [ ] brackets below (don't make any other changes to the text!):\r\n\r\n### BEGIN PLEDGE ###\r\n- [ ] I am experiencing a concrete technical issue (aka a bug) with Sails (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request).  If you're not 100% certain whether it's a bug or not, that's okay--you may continue.  The worst that can happen is that the issue will be closed and we'll point you in the right direction.\r\n\r\n- [ ] I am not asking a question about how to use Sails or about whether or not Sails has a certain feature (please refer to the documentation(http://sailsjs.com), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails).\r\n\r\n- [ ] I have already searched for related issues, and found none open (if you found a related _closed_ issue, please link to it in your post).\r\n\r\n- [ ] My issue title is concise, on-topic and polite (\"jst.js being removed from layout.ejs on lift\" is good; \"templates dont work\" or \"why is sails dumb\" are not so good).\r\n\r\n- [ ] I have tried all the following (if relevant) and my issue remains:\r\n  - Make sure you have the right app lifted.\r\n  - Make sure you've killed the Sails server with CTRL+C and started it again.\r\n  - Make sure you closed any open browser tabs pointed at localhost before starting Sails.\r\n  - Make sure you do not have any other Sails apps running in other terminal windows.\r\n  - Make sure the app you are using to reproduce the issue has a clean node_modules/ directory, meaning:\r\n    * no dependencies are linked (e.g. you haven't run npm link foo)\r\n    * that you haven't made any inline changes to files in the node_modules/ folder\r\n    * that you don't have any weird global dependency loops. The easiest way to double-check any of the above, if you aren't sure, is to run: rm -rf node_modules && npm cache clear && npm install.\r\n\r\nand finally...\r\n- [ ] **I can provide steps to reproduce this issue that others can follow.**\r\n\r\nIdeally, this involves creating a new repo that demonstrates the problem (see instructions at http://bit.ly/sails-issue-repro).  Even though your issue may seem so simple to reproduce that a new repo is unnecessary, you'd be surprised how many solutions present themselves when you start from `sails new` and attempt to recreate your issue from scratch in a new app.  This ensures that the real issue isn't in your user code (a forgotten policy file, perhaps?) or in a third-party module.  If you're absolutely _convinced_ that a new repo is unnecessary, provide clear, concise and _specific_ steps to reproduce the problem in your post (not \"create a model then do blueprint create\").\r\n### END PLEDGE ###\r\n\r\nOKAY--THANKS FOR READING!  Continue posting details of your issue below. -->\r\n<hr/>\r\nAfter reading the sails docs regarding using sockets in a multi-server environment (which I have), I added the socket.io-redis adapter.\r\n\r\nI have a stream (a stock ticker) that I need to stream to all my clients. After doing some research (and looking through the socket.io-redis docs) I decided to have a separate server that broadcasts the ticker stream via the socket.io-emitter. I figured that as long as it is connected to the same redis instance as my servers, that the servers would all recieve the message and broadcast to their connected clients.\r\n\r\nUnfortunately, this is not happening. In fact, nothing is happening, the emitter runs and broadcasts the message and the servers do nothing.\r\n\r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/332826816","html_url":"https://github.com/balderdashy/sails/issues/4195#issuecomment-332826816","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/4195","id":332826816,"user":{"login":"sailsbot","id":14700466,"avatar_url":"https://avatars2.githubusercontent.com/u/14700466?v=4","gravatar_id":"","url":"https://api.github.com/users/sailsbot","html_url":"https://github.com/sailsbot","followers_url":"https://api.github.com/users/sailsbot/followers","following_url":"https://api.github.com/users/sailsbot/following{/other_user}","gists_url":"https://api.github.com/users/sailsbot/gists{/gist_id}","starred_url":"https://api.github.com/users/sailsbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sailsbot/subscriptions","organizations_url":"https://api.github.com/users/sailsbot/orgs","repos_url":"https://api.github.com/users/sailsbot/repos","events_url":"https://api.github.com/users/sailsbot/events{/privacy}","received_events_url":"https://api.github.com/users/sailsbot/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T12:52:59Z","updated_at":"2017-09-28T12:52:59Z","author_association":"NONE","body":"Hi @istrau2!  It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our [contribution guidelines](http://bit.ly/sails-issue-guide). To re-open this issue, please copy the template from [here](https://raw.githubusercontent.com/balderdashy/sails/master/.github/ISSUE_TEMPLATE), paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. \"ok, fixed!\") so that I know to go back and check.\n\nSorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly.\n\n*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@sailsjs.com"}}
{"actor":{"display_login":"sailsbot"}}