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

  • Home
  • SEARCH
  • 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 4625560
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:17:24+00:00 2026-05-22T03:17:24+00:00

I have a chat on my web site and it needs to send many

  • 0

I have a chat on my web site and it needs to send many AJAX requests to my server (at least 2 times per second) in order to check if there are new messages.
Is there a way to reduce the number of requests and reload messages only after they have been posted?
I know that there are no possibility to use sockets (because I can’t use flash, java or features of HTML5), but maybe there is some trick dealing with keep alive option of HTTP 1.1?

  • 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-22T03:17:25+00:00Added an answer on May 22, 2026 at 3:17 am

    Yes, there is an easy way to do this. Effectively, what you do is you increase the timeout for your ajax call to a long timeout (say, 5 minutes). Your server receives the request and then holds it, occasionally checking for new responses. Then, when a new response is warranted, it simply responds to the request, and your client receives the update.

    If no response is had within 5 minutes, your client simply timeouts and starts a new ajax request. Your server, if it hasn’t responded within 5 minutes, usually then just terminates the held request to get it out of the queue.

    Effectively ‘server-side’ pushing.

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

Sidebar

Related Questions

I have a web server hosting an HTTP chat application that works with long-polling.
I'm implementing a web server. I have a chat application on it. When I
I have a chat on a web site that looks like this. I am
I have heard that web-based chat clients tend to use networking frameworks such as
I have existing chat server code written in C/C++ that communicates over TCP/IP with
For a pet project, I have been looking for a web chat script capable
We have a website, and want to allow users on the site to chat
I am trying to create a basic video and text chat web site.In the
I am considering developing a web site which has many characteristics of a social
I am developing an application in asp.net mvc where i need to have Chat

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.