实现聊天系统与Web浏览器 [英] Implementing chat system with in Web browser

查看:244
本文介绍了实现聊天系统与Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望有基于网络的应用程序来跟踪这些问题,知识管理和聊天系统。一旦用户登录,用户可以通过该服务工程师聊天。

We want to have web based application to track the issues, knowledge management and chat system. Once the user logged in, user can chat with the service engineers.

我们将使用Ajax在浏览器中聊天。但是,服务器端,我们不知道如何实现聊天?聊天记录必须保存为横向观看。当有人开始聊天时,系统必须找到可用的服务工程师,他将开始与客户的连接。

We will be using Ajax for Chat within the browser. But the server-side we are not sure how to implement chat? The chat history must be saved for lateral viewing. When someone start chatting, the system must find the available service engineer and he will begin interfacing with customer.

任何更好的方法来处理聊天系统中的网络?我们确定使用Python,PHP和Ruby / Rails的,Grails的或.NET

any better approach to handle the chat system with in the web? We are OK to use Python, PHP, Ruby/Rails, Grails or .NET

我们可以使用可用的系统中,我们需要更好的界面/ API来可用的系统,以便它可以在应用程序中被集成

We can use available systems, we need better interface/api to the available system so that it can be integrated within our application.

推荐答案

呵呵。如果我要实现这样的事情,我会采取一个XMPP(Jabber的)服务器。为什么要重新发明?

Oh. If I have to implement something like this, I would take a XMPP (Jabber) server. Why to reinvent?

有两台服务器是pretty的稳定,功能丰富:的ejabberd (用Erlang实现)与openfire的(用Java实现)。我个人preFER 的Openfire ,因为它更容易配置和Java开发人员更容易找到你想扩展它的功能的情况下...但它是一个品味问题。

There are two servers that are pretty stable and feature rich: ejabberd (implemented in Erlang) and OpenFire (implemented in Java). Personally I prefer OpenFire since it easier to configure and Java developers are easier to find in case you want to extend its functionality... But it is a matter of taste.

有关Web客户端有一个名为 BOSH 技术。它可以让你不要当他们是可查询您的服务器请求每X秒,但接收邮件。波什的XMPP标准的一部分。有一个叫一个JavaScript库的strophe JS ,使您可以使用BOSH你的网页容易。有一个示例实现

For the web client there is a technology called BOSH. It allows you not to poll your server with requests every X seconds, but receive messages as soon as they are available. BOSH is a part of XMPP standard. There is a JavaScript library called Strophe JS that allows you to utilize BOSH on your web-page easily. There is an example implementation.

此外,你的东西可能更乐意与桌面IM客户端,而不是基于网络的。如果你使用XMPP你使用任何现有的IM客户端的Jabber支持自动获得一个连接到服务的能力。

Furthermore, your stuff could be more happy with desktop IM clients rather than web-based. If you use XMPP you automatically get an ability to connect to the service using any existing IM client with Jabber support.

要获得提到的功能选择可用的服务工程师可以实现小服务器插件,而不是整个服务器。历史是在这两个服务器的配置。

To get mentioned functionality to select available service engineer you could implement little server plugin and not the server as a whole. History is configurable in both servers.

所以最后,我的意见:已经采取书面和经过验证的XMPP服务器,其采用BOSH JS的strophe和一个小插件,选择免费服务工程师

So finally, my opinion: take already written and proven XMPP server, its BOSH using Strophe JS and a little plugin to select free service engineer.

这篇关于实现聊天系统与Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆