阅读背景:

如何在不使用ajax的情况下制作弹出式聊天应用程序

来源:互联网 

I have made a dating website where I have use one to one chatting application like facebook. When one user send any message to another user it showing into their popup chat box, but I have done this using ajax. Which I have run in every interval using javascript setInterval function. But I think the process is not optimize one. I don't want to make unnecessary request to the server each time, rather it only trigger when there is some new message for that user. Is there any other way to do it or any other protocol which using by big site like facebook, gmail? I have made a dating website where I have use o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: