{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-redis/issues/134","repository_url":"https://api.github.com/repos/socketio/socket.io-redis","labels_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/134/comments","events_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/134/events","html_url":"https://github.com/socketio/socket.io-redis/pull/134","id":180511274,"number":134,"title":"the client doesn't have the password?","user":{"login":"js0exp","id":22574237,"avatar_url":"https://avatars.githubusercontent.com/u/22574237?v=3","gravatar_id":"","url":"https://api.github.com/users/js0exp","html_url":"https://github.com/js0exp","followers_url":"https://api.github.com/users/js0exp/followers","following_url":"https://api.github.com/users/js0exp/following{/other_user}","gists_url":"https://api.github.com/users/js0exp/gists{/gist_id}","starred_url":"https://api.github.com/users/js0exp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js0exp/subscriptions","organizations_url":"https://api.github.com/users/js0exp/orgs","repos_url":"https://api.github.com/users/js0exp/repos","events_url":"https://api.github.com/users/js0exp/events{/privacy}","received_events_url":"https://api.github.com/users/js0exp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-02T13:02:27Z","updated_at":"2016-11-28T00:14:49Z","closed_at":"2016-11-28T00:14:49Z","pull_request":{"url":"https://api.github.com/repos/socketio/socket.io-redis/pulls/134","html_url":"https://github.com/socketio/socket.io-redis/pull/134","diff_url":"https://github.com/socketio/socket.io-redis/pull/134.diff","patch_url":"https://github.com/socketio/socket.io-redis/pull/134.patch"},"body":"var pub = new redis({\n    host: _host,\n    port: _port,\n    password: \"redis_pass\",\n    db: 14\n});\nvar sub = new redis({\n    host: _host,\n    port: _port,\n    password: \"redis_pass\",\n    db: 14\n});\nio = require('socket.io')(server);\nvar opts = {\n         host: _host,\n         port: _port\n    // pubClient: pub,\n    // subClient: sub\n};\nio.adapter(socketadapter(opts));\nif the redis server doesn't need password, It's ok.\n\nbut if the redis server require password,  I get this Error: Ready check failed: NOAUTH Authentication required\n\nI use this config: \nvar pub = new redis({\n    host: _host,\n    port: _port,\n    password: \"redis_pass\",\n    db: 14\n});\nvar sub = new redis({\n    host: _host,\n    port: _port,\n    password: \"redis_pass\",\n    db: 14\n});\nio = require('socket.io')(server);\nvar opts = {\n    pubClient: pub,\n    subClient: sub\n};\nio.adapter(socketadapter(opts));\nbut if I config the opts = { pubCliet: pub, subCliet: sub },  I get this Error\n\nD:\\code\\test_socket.io_redis\\8001\\node_modules\\msgpack-js\\msgpack.js:200\n  if (decoder.offset !== buffer.length) throw new Error((buffer.length - decoder.offset) + \" trailing bytes\");\n                                        ^\nError: 95 trailing bytes\n    at Object.decode (D:\\code\\test_socket.io_redis\\8001\\node_modules\\msgpack-js\\msgpack.js:200:47)\n    at Redis.onmessage (D:\\code\\test_socket.io_redis\\8001\\node_modules\\socket.io-redis\\index.js:121:24)\n    at emitTwo (events.js:106:13)\n    at Redis.emit (events.js:191:7)\n    at Redis.exports.returnReply (D:\\code\\test_socket.io_redis\\8001\\node_modules\\ioredis\\lib\\redis\\parser.js:114:14)\n    at JavascriptReplyParser.replyParser.Parser.returnReply (D:\\code\\test_socket.io_redis\\8001\\node_modules\\ioredis\\lib\\redis\\parser.js:28:13)\n    at JavascriptReplyParser.run (D:\\code\\test_socket.io_redis\\8001\\node_modules\\ioredis\\node_modules\\redis-parser\\lib\\javascript.js:137:18)\n    at JavascriptReplyParser.execute (D:\\code\\test_socket.io_redis\\8001\\node_modules\\ioredis\\node_modules\\redis-parser\\lib\\javascript.js:112:10)\n    at Socket.<anonymous> (D:\\code\\test_socket.io_redis\\8001\\node_modules\\ioredis\\lib\\redis\\event_handler.js:107:22)\n    at emitOne (events.js:96:13)\n    at Socket.emit (events.js:188:7)\n    at readableAddChunk (_stream_readable.js:172:18)\n    at Socket.Readable.push (_stream_readable.js:130:10)\n    at TCP.onread (net.js:542:20)\n\nso, how can i fix this bug ?   if you know please let me know, thanks!\n"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-redis/issues/comments/263158594","html_url":"https://github.com/socketio/socket.io-redis/pull/134#issuecomment-263158594","issue_url":"https://api.github.com/repos/socketio/socket.io-redis/issues/134","id":263158594,"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-28T00:14:49Z","updated_at":"2016-11-28T00:14:49Z","body":"Closed as duplicate of https://github.com/socketio/socket.io-redis/pull/116"}}
{"actor":{"display_login":"darrachequesne"}}