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 7889597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:08:24+00:00 2026-06-03T06:08:24+00:00

Do I create a timer that does ajax requests every so often to check

  • 0

Do I create a timer that does ajax requests every so often to check for new messages? This seems like it would be a huge drain on the phone.

What would be the best way to create a simple PhoneGap instant messaging/chat app?

Is HTTP streaming a tenable strategy for mobile devices? What if the connection is interrupted? Does it work on 3G?

Obviously this is a big question but any help would be much appreciated.

  • 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-06-03T06:08:25+00:00Added an answer on June 3, 2026 at 6:08 am

    This question is a little high level in scope and a lot would go into a “total answer”. It depends on what you’re using but have you considered using node.js and websockets? I know there are other ways to do server side websockets but that is a popular one.

    If you’re not familiar with web sockets, it’s a new HTML5 technology and the mobile platforms seem to be keeping right along with HTML5 technologies so this may be a viable solution for you if you’re still looking for something.

    The thing with web sockets is that you don’t poll for new data as what you have speculated in your question. It maintains an open connection between the server and the client. That way, the server only needs to push new data to the client when it arrives and vice versa when you want to push data to the server. You use a lot less data and processing since you don’t periodically check for data. Also it’s more of a “realtime” experience since messages are propagated after the server receives them.

    Doing a general google search for websockets and chat yield all kinds of tutorials available.

    Hope that helps.

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

Sidebar

Related Questions

I want to create a timer that once it reaches a certain point, the
I'm looking for a repeating timer object that allows me to create it once
I want to create a class that initializes a timer which will be used
Every time I create an object that has a collection property I go back
i have this crazy label for each time i create a migration that use
I'm developing a Firefox extension that uses an ajax-request to retrieve information. This is
I'm not sure what I'm doing wrong. I created a timer that updates a
I want to create a function such that each time the function runs, the
I create a subprocess using subprocess.Popen() that runs for a long time. It is
I'm attempting to create a plugin that compares the time of a piece of

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.