Hello. I am doing a social network and now I need to create a mechanism for updating the list of private messages in the conversation. That is, they are updated on the fly. I understand that you can simply repeat the ajax request every ten seconds, but it seems that I once read about a method that somehow keeps the connection open. What is this way? Perhaps I am mistaken and there is no such way, in that case, please do not swear :)
- oneru.wikipedia.org/wiki/… - Zowie
- Thank you so much! Looks like this is what I was looking for. Tell me more, what is the cross-browser compatibility of this solution and what are the disadvantages, if possible? - Eriendel
- It seems that I still read about websockets available in html 5. This method does not work in the donkey version below 10, but it is easier to use. - Eriendel
- onemb socket.io? - Zowie
- This is even more fun. But for now, I’ll confine myself to websockets because this is a project for fun and there’s no need for cross-browser compatibility. - Eriendel
|