{"action":"created","issue":{"url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/59","labels_url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/59/comments","events_url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/59/events","html_url":"https://github.com/jrief/django-websocket-redis/issues/59","id":46733882,"number":59,"title":"“subscribe-user” fails when run on nginx+wsgi with django-websocket-redis","user":{"login":"panicz","id":9381224,"avatar_url":"https://avatars.githubusercontent.com/u/9381224?v=3","gravatar_id":"","url":"https://api.github.com/users/panicz","html_url":"https://github.com/panicz","followers_url":"https://api.github.com/users/panicz/followers","following_url":"https://api.github.com/users/panicz/following{/other_user}","gists_url":"https://api.github.com/users/panicz/gists{/gist_id}","starred_url":"https://api.github.com/users/panicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panicz/subscriptions","organizations_url":"https://api.github.com/users/panicz/orgs","repos_url":"https://api.github.com/users/panicz/repos","events_url":"https://api.github.com/users/panicz/events{/privacy}","received_events_url":"https://api.github.com/users/panicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-10-24T12:45:02Z","updated_at":"2015-05-12T20:35:46Z","closed_at":null,"body":"I have an instance of django-websocket-redis, installed from pip and configured according to the instructions, that is, I have an instance of nginx and two instances of uwsgi, configured to communicate with nginx via websockets.\r\n\r\nEverything seems to work fine when I use websockets with the broadcast option, i.e.\r\n\r\n    RedisPublisher(faculty=x,broadcast=true).publish_message(RedisMessage(y))\r\nand\r\n\r\n    ws://{{ host }}/ws/x?subscribe-broadcast&echo\r\nHowever, when I try to send messages to specific users, i.e.\r\n\r\n    RedisPublisher(faculty=p, users=[u]).publish_message(RedisMessage(q))\r\nand\r\n\r\n    ws://{{ host }}/ws/p?subscribe-user&echo (being logged in as user u)\r\nthen I get no message at all.\r\n\r\nThis latter setup works when the django ./manage.py runserver is used instead of nginx + uwsgi.\r\n\r\nCould anyone explain what could be the reason of this discrepancy, and how I could possibly fix it?\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/comments/101412349","html_url":"https://github.com/jrief/django-websocket-redis/issues/59#issuecomment-101412349","issue_url":"https://api.github.com/repos/jrief/django-websocket-redis/issues/59","id":101412349,"user":{"login":"camilonova","id":202559,"avatar_url":"https://avatars.githubusercontent.com/u/202559?v=3","gravatar_id":"","url":"https://api.github.com/users/camilonova","html_url":"https://github.com/camilonova","followers_url":"https://api.github.com/users/camilonova/followers","following_url":"https://api.github.com/users/camilonova/following{/other_user}","gists_url":"https://api.github.com/users/camilonova/gists{/gist_id}","starred_url":"https://api.github.com/users/camilonova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilonova/subscriptions","organizations_url":"https://api.github.com/users/camilonova/orgs","repos_url":"https://api.github.com/users/camilonova/repos","events_url":"https://api.github.com/users/camilonova/events{/privacy}","received_events_url":"https://api.github.com/users/camilonova/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T20:35:46Z","updated_at":"2015-05-12T20:35:46Z","body":"Django 1.6 and django-websocket-redis==0.4.4 fails the same.\r\n\r\nUsing django-websocket-redis==0.4.1 works."}}