Hi Carl, Thank you for your answer. This is a chat application, so when a user disconnects you want to tell everybody else in the room that somebody left. That's why I need to detect it. Does it makes sense?
If I turn on keep-alives, how would I detect the connection drop in a GRPC Go server? (or other language if there is any limitation in Go). Thx a loot El mié., 1 mar. 2017 a las 20:48, Carl Mastrangelo (<notc...@google.com>) escribió: > You can't really tell if the client is accidentally disconnected, but you > can find out with a few seconds by turning on keep-alives. But, for your > question: why do you want to know? What different course of action would > you take if you did know? > > > On Friday, February 24, 2017 at 4:19:59 PM UTC-8, gust...@gmail.com wrote: > > Hi all, > > How can I detect in the server side when a client gets disconnected? The > typical use case could be a chat server where you want to notify other > users when somebody leaves ungracefully. > > I haven't been able to find a clear answer to this question yet. I'm > using Go implementation. > > Regards, > > -- 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 grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. 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/CAPx8CAZR0yfAZ%2BDBFMmvYn2r1Te9n6P26cd2A91cVqe%2BJz8gFw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.