fix: Redis 4 does not reconnect after unhandled error in RedisPubSub.js
          #9571
        
          
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Pull Request
PR #8706 added empty handlers to
src/Adapters/Cache/RedisCacheAdapter.js.It did not add the empty handlers to RedisPubSub.js, meaning that this issue was closed but not completely fixed when RedisPubSub.js is in use.
Issue
Closes: #8705
Approach
Adds mostly empty event handlers to the Redis client, which is now required for Redis 4.
NB: Please let me know if it would be better to open a new issue for this rather than referring to the original (closed) issue, but I do believe that it is the same issue that hasn't been fixed in a certain area. I've tested the fix in my production environment and it does seem to fix the problem I have been having for a while now.