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

Add examples for streaming situations #18

Open
codedread opened this issue Dec 23, 2020 · 5 comments
Open

Add examples for streaming situations #18

codedread opened this issue Dec 23, 2020 · 5 comments

Comments

@codedread
Copy link

codedread commented Dec 23, 2020

Specifically, I'm looking for how to properly close a streaming RPC with an error code/status in a Node server.

See grpc/grpc-node#287

@avinassh
Copy link
Owner

Hey. Error handling in streaming would be same as non streaming RPC calls

@long1eu
Copy link

long1eu commented Oct 14, 2021

@avinassh how exactly? you can't just call.write() since it's typed and it will throw if you try to send anything else except the proper message.

@long1eu
Copy link

long1eu commented Oct 14, 2021

found it, but it's absolutely not the same as with unary

grpc/grpc-node#287 (comment)

call.emit('error', status)

@avinassh
Copy link
Owner

Thanks for educating me @long1eu, I assumed it would be same since it is same across all languages.

@long1eu
Copy link

long1eu commented Oct 16, 2021

Thank you for your work.

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

No branches or pull requests

3 participants