Your client should establish a connection to the server, and just wait for 
events to come back.  What you described sound right, though you should 
probably refresh connections every hour or so.  Connections go stale 
occasionally and you should design for that possibility.

What language are you using?

On Monday, January 30, 2017 at 3:58:21 AM UTC-8, [email protected] wrote:
>
> Hi.
>
> What is the proper way to implement unsolicited events (fired by server 
> toward all its clients)? Should I use a never-returning server-stream rpc 
> method (i.e. a "subscribe" method) in order to keep a set 
> of IServerStreamWriter references and use such references to reach clients 
> back?
>
> Same pattern should apply to a pub/sub scenario, as far as I understand.
>
> Thanks!
>

-- 
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/6f51133c-cba4-4650-afc0-6b198efac99d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to