Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 507589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:49:11+00:00 2026-05-13T06:49:11+00:00

In general chat application, client’s browser always poll to server to check for new

  • 0

In general chat application, client’s browser always poll to server to check for new messages.

// the function to check new messages in server
function check(){

  // but this question is less about jQuery.
  $.ajax({
    type: "POST",
    url: "check.aspx",
    data: "someparam=123",
    success: function(msg){

       // process msg here

       // CHECK IT AGAIN, but sometimes we need to make delay here
       check();
    }
  });
}

Then I read Nicholas Allen’s blog about Keeping Connections Open in IIS.

It makes me think if it is possible to push data from my server to client’s browser by transfer chunked HTTP (it means like streaming, right?) and keep the connection open.

while keeping the connection open, in server, I have idea to keep something run to check new messages. something like this, maybe

while(connectionStillOpen) {
    // any new message?
    if( AnyMessage() )
    {
       // send chunked data, can I?
       SendMessageToBrowser();
       // may be we need to make delay here
       Sleep(forSomeTime);
    }
}

that’s a raw idea.

My Chat App created in ASP.net. With my less understanding of WCF and advanced IIS streaming module, I need your advice about to implement this idea.

yea, Impossible is probably the answer. But I need to know why if its still impossible.

UPDATE (3 years later):

This is exactly what I was looking for:
Microsoft ASP.NET SignalR

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:49:12+00:00Added an answer on May 13, 2026 at 6:49 am

    Yes, it’s impossible to push data from server directly to your browser client.

    But you can to check server for new messages every, let’s say, 3 seconds and refresh your client interface.

    Maybe you want to take a look on some Comet implementations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a chat program where the client is single-threaded but the server
This is specifically about GWT's RequestBuilder, but should apply to general XHR as well.
This is probably a newb question. How does a chat server like PHPFreeChat Works?
Helloes good people of Stack Overflow, I have a .NET client-server application running with
So, I'm trying to make sense of WCF in general, and this MSDN chat
General context : MVVM application. I have a View called JobView. Its DataContext is
In general, are WCF Data Services interoperable or Microsoft specific? This ADO.NET Blog link
I have 2 questions for you. Im creating an Application for Chat that relies
Interested in listening in on general chat by Windows Phone 7 developers. Anyone know
I am writing this chat program that uses ncurses as the interface. How am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.