Then since I will be sending different data for every user, holding online users in a single Group does not make sense right?
But then where should I hold online users? In a database table? The documentation states using a Group is the best option because it automatically handles removing the users who have terminated their connection ungracefully (e.g, the client application has crashed and hence, it wasn't able to send a disconnect signal, which caused not running the 'websocket.disconnect' consumer, which would have handled removing this user from the online users list)
Where should I put the online users? Should I write my own boilerplate code to do what a Group does to remove inactive users from the Group, for what I will use to hold the online users?
Thanks in advance
Regards
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/51710fe5-b784-4478-9a01-efa36cb56527%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment