How do I get the grpc status for a server streaming call? 
I imagine that if there were no errors while iterating all 
$call->responses() the status is =0. 
But what about other cases? I see that the iteration can 
throw InvalidArgumentExceptions but this exception has no $code in it. 

For non server streaming calls you can call $call->wait() that will return 
the status. 

In go for this case you can do 
grpc.Code(err)
when you have the error. 

I can't find anything for php.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/9ff54e1a-e9f6-4b2a-8d8d-02fb97477770%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to