You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a chat app with Nest.js and initially had a RedisIoAdapter.ts setup after reading some docs, and that is/was working fine. However, when I added another Redis instance & client I started to get the error.
Error: Redis is already connecting/connected
So its leading me to believe I can't have connections open for each of my two servers?
Overview of what I'm trying to do:
Server 1 (port 6379) - Pub/Sub IO Adapter
Server 2 (port 6380) - Meta-data cache for sessions
Server 1 gets its connection setup in the bootstrap method for the NestJS server. Then Server 2 gets setup in the RedisModule with its client.factory`.
If I disable one of them (IOAdapter is the easiest to disable/comment out) then it runs without an error, but if I start the app with both still enabled, I get the error above whenever the second connection trys to start.
I'm working on a chat app with Nest.js and initially had a
RedisIoAdapter.ts
setup after reading some docs, and that is/was working fine. However, when I added another Redis instance & client I started to get the error.So its leading me to believe I can't have connections open for each of my two servers?
Overview of what I'm trying to do:
Server 1 gets its connection setup in the
bootstrap
method for the NestJS server. Then Server 2 gets setup in theRedisModule
with its client.factory`.If I disable one of them (IOAdapter is the easiest to disable/comment out) then it runs without an error, but if I start the app with both still enabled, I get the error above whenever the second connection trys to start.
Server 2 Client Factory:
Server 1 IOAdapter:
The text was updated successfully, but these errors were encountered: