On Thu, Jul 28, 2016 at 12:15 PM, Mosca, Federico <[email protected]> wrote:
> yes I upgraded to latest python version of grpc (1.0.0rc1) but in all the > examples that I checked the scenario is the following: > > - start server > > - start client > > - client send message to server that reply (https://github.com/grpc/grpc/ > blob/846768c12ff03ea69073c9373ef211ef478c53d6/examples/python/ > helloworld/greeter_client.py#L42) > > I need to create a scenario where is the server that send message to > client once both are up and running (as first that initiate the > communication). > > Maybe I'm missing something in the example/documentation, could you please > point me where to look? > I apologize; it had escaped me that our examples don't quite illustrate your intended use. Two important things that gRPC does require are that the client has to initiate communication with the server (by establishing a channel) and that the client has to initiate the bidirectionally-streaming RPC. What is not required is that the client send the first message. It's perfectly fine for the server to send the first message. It's perfectly fine for the server to send all its messages before the client sends any. It's perfectly fine for the server to send all its messages and for the client to never send a single message. -N -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEOYnATJkTdS-SBZN0PHcKjByFpxAtuF-dXcJjwdqNsvjjeFsQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
