Skip to content
Discussion options

You must be logged in to vote

The error event listener requirement is a Node.js EventEmitter thing - without it, errors crash your process. The client already handles reconnection automatically, so for most applications, logging + optional monitoring integration is actually a reasonable approach. The errors you see there are network-level issues that the client is already working to recover from.

If you need stricter behavior, use reconnectStrategy to control when to give up

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nkaradzhov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants