socketio / socket.io-admin-ui

Admin UI for Socket.IO
https://admin.socket.io
MIT License
346 stars 94 forks source link

RedisClient library used for RedisStore #62

Open afrancis-caregility opened 1 year ago

afrancis-caregility commented 1 year ago

I am trying to use the RedisStore for sessionId storage and I am not seeing any entry in RedisDB for this. So, I want to know which RedisClient is being used to insert key in RedisDB. I use "ioredis": "^5.2.5" in my nodejs application. The admin UI is working correctly. I was expecting an entry in Redis but not seeing one. So, I want to understand this a little better.

darrachequesne commented 1 year ago

Hi! We use redis@3: https://github.com/socketio/socket.io-admin-ui/blob/fcf32cc3cc0d92c907a02e69bfc54fab14646496/package.json#L52

Not sure the ioredis package supports the syntax here: https://github.com/socketio/socket.io-admin-ui/blob/fcf32cc3cc0d92c907a02e69bfc54fab14646496/lib/stores.ts#L31-L72

But you should be able to write your own store by extending the Store class.