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

FIX 265 #267

Merged
merged 1 commit into from
Feb 20, 2022
Merged

FIX 265 #267

merged 1 commit into from
Feb 20, 2022

Conversation

aricart
Copy link
Member

@aricart aricart commented Feb 18, 2022

[FIX] [CHANGE] current javascript clients close the connection on permission errors, this changes the behaviour to match other client implementations. Note that in some cases (like pub/req permissions) the only way to know that there was a permission error is via the status. On subscriptions, if callback, the err argument will provide the same.

[FIX] on iterators, if a permission error triggered, the connection was closed, but the promise from the subscription backing it, remained pending.

Fixes #265

…mission errors, this changes the behaviour to match other client implementations. Note that in some cases (like pub/req permissions) the only way to know that there was a permission error is via the status. On subscriptions, if callback, the `err` argument will provide the same.

[FIX] on iterators, if a permission error triggered, the connection was closed, but the promise from the subscription backing it, remained pending.

Fixes #265
@aricart aricart requested a review from Jarema February 18, 2022 19:12
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart merged commit afc6da4 into main Feb 20, 2022
@aricart aricart deleted the fix-265 branch February 20, 2022 16:27
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.

javascript clients close the connection on permission error
2 participants