Answer the question
In order to leave comments, you need to log in
How to make online notifications in Django?
Hello!
I would like to make messages on the site like Vkontakte, so that the user sees new messages without refreshing the page!
As I understand it, all this is done using WebSocket (socket.io), tell me how best to do this and which way to look ?!
Answer the question
In order to leave comments, you need to log in
ajax after 2 seconds requests the url, if something has arrived - displays
if you bother - event source
https://pypi.python.org/pypi/eventsource
https://wiki.python.org/moin/PythonEvents
Websockets should be used if you need to send an almost real-time notification stream
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question