Orleans: Question about 2.0 ChatRoom example

Created on 10 Sep 2018  路  2Comments  路  Source: dotnet/orleans

How can the Channel grain detect when a user disconnects/closes the Client app in order to remove them from the onlineMembers list?

I know the client can leave the channel, but I wanted to know of a more reliable way to detect this since if a client just closes the app without leaving the channel, the user remains in the onlineMembers list indefinitely.

question

All 2 comments

Without client explicitly removing itself from the list, the Channel grain can implement a time-based expiration policy to remove registered clients if they don't rejoin periodically.

Ahh okay thank you.

Was this page helpful?
0 / 5 - 0 ratings