c# - Website but more like chat application behaviour -
Hi, I want to use a website primarily in ASP.NET 3.5 as C #. In this web app, I have to push messages very often. (Like if the sender sends a message, it should immediately reflect the receivers) Like so many chat applications but not bidirectional, my question is how can I refresh the receiver webpage immediately? Or how can I send messages to receivers instantly?
Any help is highly appreciated?
I'm thinking that you are talking about features like Facebook Chat According to various Facebook Dev blog posts, I believe they use AJAX for a long time to vote; Which means that as soon as a user sends a message, another AJAX request is requested which is not answered by the server, unless there is nothing to report (i.e. a new message). It is often called "comet".
Note: Do not try to do this on a standard server setup - Most server software starts a new thread for each request. To avoid this, you will need a custom server software. Unfortunately, I have searched for hours in the past and can not find a definite answer that the software meets this best thing.
Comments
Post a Comment