backbone.js - How does Trello show users online/offline/idle state accurately? -


TROLLO shows information online / offline / inactive status very accurately as I personally saw There are several solutions for users to monitor online situations, and a serious overhead is required to do this. It does not even know that the user has closed the browser, there are traditional problems of disconnected etc. which cause disqualification in offline / inactive status. For platforms which do not have chat functionality (which I believe is the overhead of keeping track of the user's level and therefore makes this work easier at the end), although how can Trailo be achieved? Without any upper part?

"post-text" itemprop = "text">

each The browser tab is considered to be a session, which is connected to a user. The activity level of each session is tracked separately, with which the user shows the highest activity level of all sessions (where active is highest, then inactive, then disconnected).

Each tab periodically sends its current status on the server - every minute if it has a working web site, every 5 minutes otherwise. Each time the tab is focused on profit, or if there is a keydown or mussudona event, the current state is reset to reset. It becomes inactive if Tab will send disconnected status to the InUlode event, which is more than 5 minutes of the most recent recent events, but we do not rely on this.

Every time a session sends its position to the server, the server sees all the user sessions to determine whether it indicates a change in the user's condition, if that happens, then it is Provides a new situation to the person who is looking at every board that is watching every user (this goes through the same framework that the rest of the immediate update of Trailo, and to understand it Is very complex).

The server also checks each session to see if we have heard from that session (2 minutes if a webSocket session, 10 minutes otherwise) and if that session is over, then It has been long (removing the session indicates this)

There are some optimizations hiding in it, but this is the main story.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -