Answer the question
In order to leave comments, you need to log in
How can Django calculate the time a browser tab has been open?
The tab's activity doesn't matter. The browser can be minimized, but the time count must continue. The counter should stop and fix the time when the tab is closed. Point in which direction to dig?
Answer the question
In order to leave comments, you need to log in
websockets to help - https://channels.readthedocs.io/en/latest/ you can count everything up to a second
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question