I developed a Facebook-like chat in PHP and JavaScript. It's a plugin for a forum software. Currently I'm using (short) polling to receive new messages, but I'd like to try it with something better, like sockets.
What would you recommend for this kind of chat (available on every site, private chat, group chat..) : WebSockets, node.js with socket.io, ejabberd...
From my personal experience there are no good socket library available for PHP. Usually one wants to have a socket library which will have fallback mechanisms if native socket support is not available. 2 suggestions from me :
I had a similar situation and I am using option 2 :).