Skip to content
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

FKDEV-363: mq reconnect logic #36

Merged
merged 5 commits into from
Dec 20, 2022
Merged

Conversation

gab3sz
Copy link
Contributor

@gab3sz gab3sz commented Nov 24, 2022

this._connection.off('close', this._onClose)
}

this._connection.close((err) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Itt a promise API-t használd a close method-ból!
Egyszerűbb lesz kezelni a hibát.
Illetve ettől async lesz ez a function is, szóval be kell várni a promise-okat ahol ez hívva lesz.

Comment on lines +124 to +126
if (!handleCloseEvent) {
this._connection.off('close', this._onClose)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tesztekben ezt az elágazást is fedd le légyszi!

@tgabi333 tgabi333 merged commit 26f234b into master Dec 20, 2022
@tgabi333 tgabi333 deleted the feature/FKDEV-363-reconnect branch December 20, 2022 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants