{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/frappe/issues/1374","labels_url":"https://api.github.com/repos/frappe/frappe/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/1374/comments","events_url":"https://api.github.com/repos/frappe/frappe/issues/1374/events","html_url":"https://github.com/frappe/frappe/issues/1374","id":113575362,"number":1374,"title":"Node.js Notifications from client to server","user":{"login":"saguas","id":2410469,"avatar_url":"https://avatars.githubusercontent.com/u/2410469?v=3","gravatar_id":"","url":"https://api.github.com/users/saguas","html_url":"https://github.com/saguas","followers_url":"https://api.github.com/users/saguas/followers","following_url":"https://api.github.com/users/saguas/following{/other_user}","gists_url":"https://api.github.com/users/saguas/gists{/gist_id}","starred_url":"https://api.github.com/users/saguas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saguas/subscriptions","organizations_url":"https://api.github.com/users/saguas/orgs","repos_url":"https://api.github.com/users/saguas/repos","events_url":"https://api.github.com/users/saguas/events{/privacy}","received_events_url":"https://api.github.com/users/saguas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-27T12:49:57Z","updated_at":"2015-11-02T14:17:01Z","closed_at":null,"body":"Client (from javascript) publish in redis via node.js.\r\n\r\nSome thing like this in socket.js:\r\n\r\n```var r = redis.createClient(12311); //already in the file    \r\nsocket.on('redis_emit', function(channel, msg) {\r\n\t\tr.publish(channel, msg);\r\n\t});```\r\n\r\nand from javascript we can send like this:\r\n\r\n```frappe.socket.socket.emit('redis_emit', \"teste_channel\", \"message!!!\");```"},"comment":{"url":"https://api.github.com/repos/frappe/frappe/issues/comments/153028612","html_url":"https://github.com/frappe/frappe/issues/1374#issuecomment-153028612","issue_url":"https://api.github.com/repos/frappe/frappe/issues/1374","id":153028612,"user":{"login":"anandpdoshi","id":836785,"avatar_url":"https://avatars.githubusercontent.com/u/836785?v=3","gravatar_id":"","url":"https://api.github.com/users/anandpdoshi","html_url":"https://github.com/anandpdoshi","followers_url":"https://api.github.com/users/anandpdoshi/followers","following_url":"https://api.github.com/users/anandpdoshi/following{/other_user}","gists_url":"https://api.github.com/users/anandpdoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/anandpdoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandpdoshi/subscriptions","organizations_url":"https://api.github.com/users/anandpdoshi/orgs","repos_url":"https://api.github.com/users/anandpdoshi/repos","events_url":"https://api.github.com/users/anandpdoshi/events{/privacy}","received_events_url":"https://api.github.com/users/anandpdoshi/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T14:17:01Z","updated_at":"2015-11-02T14:17:01Z","body":"@saguas Here's an example of how to do client to server communication: https://github.com/frappe/frappe/pull/1389"}}