AJAX chat. Tell me about the chat.

How often should I contact the server for new messages?

And is it possible to do this without calls? Let’s say put a client on a socket. Or some push technology.

Answer 1, authority 100%

Why Node.JS? There are many implementations of Comet servers.

Answer 2, authority 50%

Maybe look not in the direction of the Comet server, but use more advanced technology WebSocket?

There is a PHP implementation, see: PHP5 WebSocket Chat

Answer 3


dig here