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: close server stream on observer unsubscribe #309

Merged
merged 2 commits into from
Jun 13, 2021
Merged

fix: close server stream on observer unsubscribe #309

merged 2 commits into from
Jun 13, 2021

Conversation

justinschuldt
Copy link
Contributor

I found that once a server stream is opened, there is no way to close it. Unsubscribing from the observable would not close the connection between the browser and the server.

This change adds a handler on the observer that will call the grpc.invoke's close, which will close the connection between the browser and the server.

@justinschuldt justinschuldt changed the title close server stream on observer unsubscribe fix: close server stream on observer unsubscribe Jun 2, 2021
@stephenh
Copy link
Owner

Thanks @justinschuldt !

@stephenh stephenh merged commit 4b72563 into stephenh:main Jun 13, 2021
stephenh pushed a commit that referenced this pull request Jun 13, 2021
## [1.81.3](v1.81.2...v1.81.3) (2021-06-13)

### Bug Fixes

* close server stream on observer unsubscribe ([#309](#309)) ([4b72563](4b72563))
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.81.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@justinschuldt justinschuldt deleted the close-server-stream branch August 11, 2021 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants