适用于本地主机服务器的最佳 jQuery/Java PHP 解决方案 - 客户端实时聊天
我的私人网络中有带有 PHP 的 Apache 服务器和关联的本地客户端 PC。有人可以建议客户端 PC 和服务器之间通信的最佳聊天解决方案吗?我正在寻找 Ajax/Java 解决方案,例如 GMail 内的聊天支持。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否考虑过 Google App Engine for java 的 XMPP 服务?
http://code.google.com/appengine/docs/java/xmpp/
显然,它与其余的 google api 具有非常好的集成,如果您在配额范围内,或者使用 jetty 在本地服务器上运行它,则可以免费托管服务器
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
您可以使用 JQuery / PHP Chat是免费的,可以集成到网站中。
You can make use of JQuery / PHP Chat which is free and can be integarted into sites.
用阿帕奇做不到。聊天通常通过一种名为 Comet 的技术来完成,Apache 不支持该技术, AFAIK。 GMail 使用这种技术。
另一种效率较低的可能性是使用轮询策略,这涉及大量无关的服务器-客户端通信。
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.