一对一聊天窗口 [英] One to One Chat Window

查看:119
本文介绍了一对一聊天窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要设计一个类似于Facebook聊天风格的聊天窗口.如果在我的网站上注册的任何用户碰巧都在线,则应使他知道我在线.

此外,如果他单击我的个人资料,则会出现一个聊天窗口,反之亦然.

如果您有任何建议,请帮助我.

提前谢谢.

我正在将ASP.Net 2008与C#

I am to design a chat window like Facebook chat style. If any user registered of my site happens to be on line he should be be made aware that I am online.

Further if he click on my profile a chat window should appear and vice versa.

If you have any suggestion please help me.

Thanks in advance.

I am using ASP.Net 2008 with C#

推荐答案

一起使用,我认为Google在您所在的地方无法正常工作吗?

一个简单的Google搜索 [用于ASP.NET的简单聊天应用程序 [
I take it Google is not working where you are?

A simple Google search "One to One Chat Window c# asp.net"[^] found this: Simple chat application for ASP.NET[^]




几个月前,我正在解决类似的问题.为什么不使用像芒果聊天这样的商业解决方案呢?我花了两个月的时间来尝试针对带宽和线程问题优化自己的代码,然后才购买了mangochat,因为它只有
Hi,

I was solving a similar problem some months back. Why not use a commercial solution that is available like mango chat? I spent 2 months trying to optimize my own code for bandwidth and threading issues and then just ended up purchasing mangochat since its only


99,并且已经处理了所有问题.

另外,如果您决定使用自己的解决方案,请确保使用Comet而不是简单的AJAX调用.那是我犯的错误.简单的AJAX调用会占用太多带宽,因为聊天的每个客户端都将向服务器发送恒定的调用.
99 and it already has everything taken care of.

Also if you do decide to stay with your own solution make sure to use Comet rather than simple AJAX call. That was a mistake i was making. Simple AJAX calls will take too much bandwidth as each client of the chat will be sending constant calls to the server.


这篇关于一对一聊天窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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