Good day! Faced the need to implement Comet technology instead of the usual AJAX requests back and forth every second ...
The whole day did not depart from the company, trying to figure out, reading articles and all sorts of examples. Sometimes it almost worked. But the principle is so normal and did not understand, in practice it does not work
Please explain the principle of the work of the notorious Comet, preferably with some simple example, otherwise I’m trying to write a working script, and something works wrong anyway ...