Django - How to track if a user is online/offline in realtime?
问题 I'm considering to use django-notifications and Web Sockets to send real-time notifications to iOS/Android and Web apps. So I'll probably use Django Channels . Can I use Django Channels to track online status of an user real-time? If yes then how I can achieve this without polling constantly the server? I'm looking for a best practice since I wasn't able to find any proper solution. UPDATE : What I have tried so far is the following approach: Using Django Channels, I implemented a WebSocket