{"action":"closed","issue":{"url":"https://api.github.com/repos/SerayaEryn/fastify-session/issues/26","repository_url":"https://api.github.com/repos/SerayaEryn/fastify-session","labels_url":"https://api.github.com/repos/SerayaEryn/fastify-session/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/SerayaEryn/fastify-session/issues/26/comments","events_url":"https://api.github.com/repos/SerayaEryn/fastify-session/issues/26/events","html_url":"https://github.com/SerayaEryn/fastify-session/issues/26","id":304183819,"number":26,"title":"Redis session store","user":{"login":"selesh3","id":23247121,"avatar_url":"https://avatars1.githubusercontent.com/u/23247121?v=4","gravatar_id":"","url":"https://api.github.com/users/selesh3","html_url":"https://github.com/selesh3","followers_url":"https://api.github.com/users/selesh3/followers","following_url":"https://api.github.com/users/selesh3/following{/other_user}","gists_url":"https://api.github.com/users/selesh3/gists{/gist_id}","starred_url":"https://api.github.com/users/selesh3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selesh3/subscriptions","organizations_url":"https://api.github.com/users/selesh3/orgs","repos_url":"https://api.github.com/users/selesh3/repos","events_url":"https://api.github.com/users/selesh3/events{/privacy}","received_events_url":"https://api.github.com/users/selesh3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-11T19:00:47Z","updated_at":"2018-03-23T19:28:02Z","closed_at":"2018-03-23T19:28:02Z","author_association":"NONE","body":"I tried to use connect-redis\r\n\r\n`const fastify = require('fastify')()\r\nconst fastifySession = require('fastify-session')\r\nconst fastifyCookie = require('fastify-cookie')\r\nconst RedisStore = require('connect-redis')(fastifySession)\r\nconst redis = require('redis')\r\n\r\nconst redisClient = redis.createClient()\r\n\r\nconst sessionOptions = {\r\n\tsecret: 'key',\r\n\tstore: new RedisStore({\r\n\t\thost: 'localhost',\r\n\t\tport: 6379,\r\n\t\tclient: redisClient,\r\n\t\tttl: 600\r\n\t}),\r\n\tcookieName: 'sesId',\r\n\tcookie: {\r\n\t\tsecure: false,\r\n\t\thttpOnly: false,\r\n\t\tdomain: 'localhost',\r\n\t\tpath: '/'\r\n\t}\r\n}\r\n\r\nfastify.register(fastifyCookie)\r\nfastify.register(fastifySession, sessionOptions)`\r\n\r\nBut I got a error\r\n\r\n/node_modules/connect-redis/lib/connect-redis.js:129\r\n      self.emit('connect');\r\n           ^\r\n\r\nTypeError: self.emit is not a function\r\n\r\nI will appreciate if you can help with it"}}
{"actor":{"display_login":"selesh3"}}