Y
Y
YuriyCherniy2019-11-19 23:13:35
Django
YuriyCherniy, 2019-11-19 23:13:35

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

1 answer(s)
A
AlexandrBirukov, 2019-11-20
@YuriyCherniy

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 question

Ask a Question

731 491 924 answers to any question