I am looking for a solution for PHP and comet. I would like to make a chat using Ajax to send the message. I call the function using jQuery and send data, it is simple.
But the problem is in retrieving new messages. How to retrieve messages using the new solution comet? I need a simple example. I am looking for a solution for non-commercial use – for free.
Advertisement
Answer
In short, I would tell you to use Node.js as your backend technology.
Here’s a more lengthy explanation: Creating a live checkers-like web app with PHP, JS, CSS and HTML?