avinassh/grpc-errors

Add examples for streaming situations

codedread opened this issue · 5 comments

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

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

@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.

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

grpc/grpc-node#287 (comment)

call.emit('error', status)

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

Thank you for your work.