B
B
bugakovAM2021-04-04 19:20:17
User interface
bugakovAM, 2021-04-04 19:20:17

How to implement a program user status tracking system implemented in C#?

I am writing a program in C # (based on the viber principle), I can’t figure out how to implement a system for tracking user actions to display an ONLINE / OFFLINE identifier.
Please suggest the principle of implementing such a system (so far, I’m not very strong in programming).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-04-04
@vabka

Option two - the client periodically sends a special request that he is online.
Option two - if the client has done some activity recently, then he is online.
More specific can only be said to a more specific question

C
cicatrix, 2021-04-05
@cicatrix

What is the protocol for client-server communication?
If TCP, then you can simply poll the connection status and keep it ESTABLISHED all the time. True, this approach is suitable for a relatively small number of customers. If their account went into the thousands, then yes, you need to interrogate periodically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question