Hello

I want to read bidi header from server using ruby client without reading 
server first message.
This is my current code:
operation = stub.some_bidi_method(infinite_loop_enum, return_op: true)
result = operation.execute

puts operation.metadata #return nil

result.next # get first message from server (can take a long time to get)
puts operation.metadata #return header metadata from server

I can easily solve this problem using golang like this.
stream, _ := stub.SomeBidiMethod(context.Background())
md, _ := stream.Header()

Since the requirement is using ruby, do you know any workaround to get same 
result as golang counterpart using ruby?

Thank you very much!

-- 
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/63b5041b-b0af-4176-9114-803eb13f3577%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to