-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception crashing the whole app when broker is killed #690
Comments
You're re-emitting the the error event.
|
The more your know. I wasn't actually listening to that event in the start because the lib will send a disconnect after it but it kept crashing the app and i found issues here similar. Thanks for taking the time. Closing the issue |
Thank you! |
Opening this again as i'm having the same issue.
I'm handling
close
error
andblocked
everything works fine when the broker is closed properly and the app will keep trying to reconnect as expected. But when i kill the broker (i'm running it through docker) i get both theerror
andclose
events as described in the doc but the app will crash right after.Exception looks something like this:
node -v -> v16.15.0
PS: excuse the code i'm no TS/JS dev just trying to make things work
Originally posted by @Tychus in #338 (comment)
The text was updated successfully, but these errors were encountered: