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
The handler just logs a warning if there are no other error handlers it
if (this.listenerCount("error") === 1) {
console.warn("missing 'error' handler on this Redis client");
}
Since this constructor is called every time a namespace is created in socket io, we end up adding multiple copies of this handler to the underlying redis client possibly triggering a MaxListenersExceededWarning.
Would it be possible to add these handlers conditionally only if the client does not have any already?
The text was updated successfully, but these errors were encountered:
The adapter constructor always adds an error to the redis clients here:
socket.io-redis-adapter/lib/index.ts
Line 193 in cdb5535
The handler just logs a warning if there are no other error handlers it
Since this constructor is called every time a namespace is created in socket io, we end up adding multiple copies of this handler to the underlying redis client possibly triggering a
MaxListenersExceededWarning
.Would it be possible to add these handlers conditionally only if the client does not have any already?
The text was updated successfully, but these errors were encountered: