-
Notifications
You must be signed in to change notification settings - Fork 3k
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(WebSocketSubject): prevent early close #1831
Conversation
I think additional test case can be added for this behavior changes. (check stub socket.close being called only if condition mets) |
b884ba0
to
eb7c55f
Compare
eb7c55f
to
543131c
Compare
Alright, test added. I've confirmed it fails on master and succeeds on this branch (on master the second |
Needed until ReactiveX/rxjs#1831 is merged
Has anyone had a chance to check this out? |
For me this change looks ok, need other reviewer's approval as well. |
LGTM |
Thanks! |
Needed until ReactiveX/rxjs#1831 is merged
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
This prevents the WebSocketSubject from prematurely closing the underlying websocket before all subscriptions have completed.
Related issue (if exists):
#1827