django-realtime
django-realtime copied to clipboard
get online users
Hi, I'm writing a simple web-chat using drealtime. Now here's the issue. I need to update user list on a client side, when someone logs in or out. I can simply get bunch of users using iShoutClient.get_room_status(), but I don't know how to trigger the function when someone joins or leaves a room. The obvious way I can do it is by running a cron or celery job, checking users online for every 5 seconds and refreshing info on a client side if a change has happened. But I think I could use drealtime or socketio broke or establishing the connection event. Could please you give me a follow. Merry Christmas and a Happy new Year!