{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-redis/issues/150","repository_url":"https://api.github.com/repos/socketio/socket.io-redis","labels_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/150/comments","events_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/150/events","html_url":"https://github.com/socketio/socket.io-redis/issues/150","id":191798280,"number":150,"title":"subEvent seems doesnt work","user":{"login":"DiegoHuang","id":12995707,"avatar_url":"https://avatars.githubusercontent.com/u/12995707?v=3","gravatar_id":"","url":"https://api.github.com/users/DiegoHuang","html_url":"https://github.com/DiegoHuang","followers_url":"https://api.github.com/users/DiegoHuang/followers","following_url":"https://api.github.com/users/DiegoHuang/following{/other_user}","gists_url":"https://api.github.com/users/DiegoHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/DiegoHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiegoHuang/subscriptions","organizations_url":"https://api.github.com/users/DiegoHuang/orgs","repos_url":"https://api.github.com/users/DiegoHuang/repos","events_url":"https://api.github.com/users/DiegoHuang/events{/privacy}","received_events_url":"https://api.github.com/users/DiegoHuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-26T10:13:58Z","updated_at":"2016-11-27T05:55:26Z","closed_at":null,"body":"Hi,\r\nI set opetion.subEvent as 'RedisPub', but it still receive event from 'message', \r\nsample code as belowing, if I use socket.io-redis module incorrectly, please tell me. :)\r\n\r\nSetup:\r\n\r\n      var adapter = require('socket.io-redis')({\r\n          pubClient: pubClient,\r\n          subClient: pubClient,\r\n          subEvent: 'RedisPub'\r\n      });\r\n\r\n        const msgpack = require('msgpack-js');\r\n        adapter.subClient.on('message', function (channel, msg) {\r\n          const args = msgpack.decode(msg);\r\n          if (adapter.uid != args.shift())\r\n            logger.info({'data': args}, 'Received data from other Nodes')\r\n        });\r\n\r\n        adapter.subClient.on('RedisPub', function (channel, msg) {\r\n          const args = msgpack.decode(msg);\r\n          if (adapter.uid != args.shift())\r\n            logger.info({'Channels.RedisPub remote message': args})\r\n        });\r\n        io.adapter(adapter);\r\n\r\nPublish Message:\r\n\r\n     _nsp.emit(data);"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-redis/issues/comments/263104086","html_url":"https://github.com/socketio/socket.io-redis/issues/150#issuecomment-263104086","issue_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/150","id":263104086,"user":{"login":"darrachequesne","id":13031701,"avatar_url":"https://avatars.githubusercontent.com/u/13031701?v=3","gravatar_id":"","url":"https://api.github.com/users/darrachequesne","html_url":"https://github.com/darrachequesne","followers_url":"https://api.github.com/users/darrachequesne/followers","following_url":"https://api.github.com/users/darrachequesne/following{/other_user}","gists_url":"https://api.github.com/users/darrachequesne/gists{/gist_id}","starred_url":"https://api.github.com/users/darrachequesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrachequesne/subscriptions","organizations_url":"https://api.github.com/users/darrachequesne/orgs","repos_url":"https://api.github.com/users/darrachequesne/repos","events_url":"https://api.github.com/users/darrachequesne/events{/privacy}","received_events_url":"https://api.github.com/users/darrachequesne/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T05:55:26Z","updated_at":"2016-11-27T05:55:26Z","body":"Hi! AFAIK, you can't use user-defined subscription events, you have to choose among `message`, `pmessage`, ...\r\n\r\nPlease see: https://github.com/NodeRedis/node_redis#subscriber-events"}}
{"actor":{"display_login":"darrachequesne"}}