Add examples for streaming situations
codedread opened this issue · 5 comments
codedread commented
Specifically, I'm looking for how to properly close a streaming RPC with an error code/status in a Node server.
avinassh commented
Hey. Error handling in streaming would be same as non streaming RPC calls
long1eu commented
@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 commented
found it, but it's absolutely not the same as with unary
call.emit('error', status)
avinassh commented
Thanks for educating me @long1eu, I assumed it would be same since it is same across all languages.
long1eu commented
Thank you for your work.