如何开发实时支持聊天应用程序? [英] How do I develop a live support chat application?

查看:93
本文介绍了如何开发实时支持聊天应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试用C#或Java构建一个实时支持聊天应用程序(最好是使用WCF的C#),经过无休止的搜索,我仍然可以找不到答案,希望有人能指出我正确的方向。



我的问题是,用户向所有人广播消息的典型聊天室连接客户端,我需要的应用程序更像是在亚马逊或eBay等网站上找到的Live Support应用程序。



理想情况下,多个客户支持代理将预先安装WinForms在他们的机器上聊天应用程序,当客户打开聊天窗口(aspx页面)时,它将连接到服务器/服务,然后服务器/服务将调用所有连接的客户支持代理,直到一个人回答。此时客户和代理将在私人聊天窗口中连接。



有人可以给我一些关于如何做到这一点的见解或想法吗?



谢谢,



欧文

解决方案

< blockquote>很多想法 https://www.google.co.uk/search?q = chat + .net + c%23 [ ^ ];包括CodeProject文章。




请看一下给出的例子,

在url: - https://vcca.codeplex.com/



https://vcca.codeplex.com/SourceControl/latest



问候

Shivachalappa K Gotur


您好,



看看这个:

https://github.com/dstpierre/lcsk [ ^ ]



这看起来很有希望。我没有尝试过。



从表面上看,构建实时聊天解决方案看起来很简单,但真正的挑战将放在访客方面。您的应用需要与所有主流浏览器兼容,并且它们一直在变化。此外,由于智能手机如此受欢迎,您的聊天应用也应该在移动浏览器上看起来不错。



为了向您展示商业级实时聊天应用的示例,请看看 http://www.comm100.com/livechat/ [ ^ ](我为公司工作)。我们花了20个开发人员和6年时间开发了一个实时聊天应用程序达到这个成熟水平。





可靠性将是另一个问题。您的实时聊天应用程序应该能够承受轻微的网络故障。应该没有丢失或重复的消息。为了确保这一点,我们如何做到这一点来自访问者和操作员端,每当输入消息时,客户端在客户端生成增量整数标识符并尝试从服务器获取另一个整数。如果客户端没有从服务器接收整数,它将继续这样做。这样,就不会有丢失或重复的消息。例如,当网络关闭且客户端未收到整数时,客户端会再次将消息发送到服务器。如果服务器没有收到消息(客户端整数不在服务器端),它将存储消息并为客户端生成一个号码。如果服务器之前已收到消息(客户端的号码已在服务器上),但客户端未收到确认,则服务器将忽略重复消息并将之前生成的号码发回。



祝你好运。祝你好运。如果您在编程时遇到任何具体问题,我绝对可以帮助您。



Best。


Hi Guys,

I'm attempting to build a live support chat application in C# or Java (preferably C# using WCF) and after endless searches I still can't find the answer, hopefully someone here can point me in the right direction.

My problem is that rather than a typical chat room a where users broadcast messages to all connected clients, I need the application to be more like a Live Support app found on websites such as Amazon or eBay.

Ideally multiple customer support agents will have a pre installed WinForms chat application on their machines, when a customer opens a chat window (aspx page) it will connect to a server/service and the server/service will then call all connected customer support agents until one answers. At this point the customer and agent will be connected in a private chat window.

Could somebody please give me some insight or ideas on how to do this?

Thanks,

Owen

解决方案

Lots of ideas https://www.google.co.uk/search?q=chat+.net+c%23[^]; including CodeProject articles.


Hi,
Please have a look at example given,
at url:- https://vcca.codeplex.com/.

https://vcca.codeplex.com/SourceControl/latest

Regards
Shivachalappa K Gotur


Hi,

Take a look at this:
https://github.com/dstpierre/lcsk[^]

This looks promising. I didn't try that though.

Building a live chat solution looks easy from the surface, but the real challenge will be on the visitor side. Your app need to be compatible with all the major browsers and they are changing all the time. Also, since smart phones are so popular, your chat app should also look good on the mobile browsers.

To show you a sample of commercial grade live chat app, please take a look at http://www.comm100.com/livechat/[^](I work for the company). It took us 20ish developers and 6 years to develop a live chat app to this level of maturity.


Reliability will be another issue. Your live chat app should be able to withstand minor network glitches. There should be no missing or duplicate messages. To ensure this, how we do it is from the visitor and operator side, whenever a message is typed in, the client side generates an incremental integer identifier at the client side and tries to obtain another integer from the server. If the client side does not receive the integer from the server, it will keep doing that. This way, there will be no missing or duplicate messages. For example, when the network is down and the client does not receive the integer number, the client send the message to the server again. If the server has not received the message (the client side integer is not on the server side), it will store the message and generate a number for the client. If the server has received the message before (the number from the client side is on the server already) but the client did not receive the confirmation, the server will just ignore the duplicate message and send the previously generated number back.

Good luck with your endeavour. If you have any specific question when you do the programming, I can definitely help you with that.

Best.


这篇关于如何开发实时支持聊天应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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