node.js - Backend server software for facebook-like chat with PHP/MySQL/JS? -
i developed facebook-like chat in php , javascript. it's plugin forum software. i'm using (short) polling receive new messages, i'd try better, sockets.
what recommend kind of chat (available on every site, private chat, group chat..) : websockets, node.js socket.io, ejabberd...
from personal experience there no socket library available php. 1 wants have socket library have fallback mechanisms if native socket support not available. 2 suggestions me :
- switch node.js + socket.io solution, discard php.
- have nodejs + socket.io chat system running separate server along php. put haproxy in front of webserver. divert socket request node.js , other request php. in way able use goodies of both node.js , php.
i had similar situation , using option 2 :).

Comments
Post a Comment