Hi, I'd suggest that each client sends a request to a grpc endpoint that's annotated with stream response and then the server can hang on to the stream (for instance in a user id -> stream map) and push messages to it.
Take a look at the streaming examples for your language. Christian Le mar. 28 févr. 2017 19:29, Constantine <[email protected]> a écrit : > Hi :) > > I recently learnt about gRPC and I really like to do a toy example with > it. As the old RPC chat programs, is it possible to write a chat > application that uses gRPC ? > > I tried to do it but there is a problem with it that I couldn't figure it > out: > > *How to push data from the server to a client?(in the time that the server > needs to send a new message from sender to receiver)* > I really appreciate if you help me or give a lead to follow :) > thank you :) > > -- > 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/f6ff290d-9aeb-4cae-818b-b0e14839a5f4%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/f6ff290d-9aeb-4cae-818b-b0e14839a5f4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Christian Rivasseau Co-founder and CTO @ Lefty +33 6 67 35 26 74 -- 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/CAJ6g4%3DZeyq5z1qVguAA61_%3DowJYQFXZWetxspoabCevhQH5F1A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
