I have Apache server with PHP and associated local client PCs in my private network. Can 开发者_如何学编程anybody suggest the best chat solution to communicate between client PCs and a server? I am looking for an Ajax/Java solution, like the chat support inside GMail.
Did you consider the XMPP service from google app engine for java?
http://code.google.com/appengine/docs/java/xmpp/
It has very good integration obviously with the rest of google apis and the server can be hosted for free if you're under the quota, or running it on localserver using jetty
You can make use of JQuery / PHP Chat which is free and can be integarted into sites.
Can't do it with Apache. Chat is usually done through a technique called Comet, which is not supported by Apache, AFAIK. GMail uses this technique.
Another, less efficient possibility is using polling strategy, which involves a lot of extraneous server-client communication.
精彩评论