Questions tagged [long-polling]

In web programming, long-polling is an emulation of pushing data, implemented by repeated polling with delayed response.

Long polling is itself not a true push; long polling is a variation of the traditional polling technique, but it allows emulating a push mechanism under circumstances where a real push is not possible, such as sites with security policies that require rejection of incoming HTTP/S Requests.

1099 questions
0
votes
3 answers

how to get the current number of users who have a given web page open

Is there a simple and efficient way to get the number of visitors who have a given web page open? The ultimate goal is to do this: Check how many visitors there are on the page, i.e. who have the page open in their browser. If it exceeds a certain…
skyork
  • 7,113
  • 18
  • 63
  • 103
0
votes
1 answer

Android: Where to dismiss my splash screen

My app loads up a json feed and a webview, the url of the webview is taken from the webview. I cannot show anything until both of these are loaded, therefore I am using a splash screen. My problem is that my webview connects to a socket.io server…
SteveEdson
  • 2,485
  • 2
  • 28
  • 46
0
votes
1 answer

Comet with new handler in each request

I start try Comet to create a notification system using JMS in server side. I need that a web service send asynchronous message to the servlet notifying the CometHandler. I started using the counter sample of Glassfish…
Enrico
  • 71
  • 1
  • 6
0
votes
1 answer

get content provided by API regularly

I just look at all available API's in here. Since there are so many API provide content which updated regularly (such as latest news), how am I supposed to get the content as soon as it's updated or new content available? As far as I know, only Long…
Mayfield Four
  • 95
  • 3
  • 9
0
votes
1 answer

long polling events

I implement long polling on my web site using php. All work fine, but have one problem. When i open several pages by one user, i have problem with recognize, what event i should to run on that page. If i block event after it work on one page, that…
alhimikst
  • 428
  • 3
  • 10
0
votes
1 answer

Keeping connection open in Django without websockets

I have a mini computer that does not support websockets that I would like to receive push notifications from a server. The issue is that after the client connects to the server, the server responds and then closes the connection. This makes it so…
Alexis
  • 23,545
  • 19
  • 104
  • 143
0
votes
2 answers

Call a function inside Ajax

I'm having a problem, I can't make a loop inside this code: class ProductsPager constructor: -> this.waitformsg() waitformsg: => alert 'begin' $.ajax type: "GET" url:…
sidney
  • 2,704
  • 3
  • 28
  • 44
0
votes
2 answers

Android: Polling for every 2 sec

One feature of my application is to retrieve live data (JSON object) every 2 sec and display it (only while app is in foreground). I am executing an async task for every 2 sec. But this is making the app slow. I have searched for alternative, but i…
Venu Gandhe
  • 77
  • 1
  • 8
0
votes
1 answer

Keeping a web-app 'live' (i.e. responsive to changes in data)

As title says, I will be developing an asp .net web-application all geared around displaying data. This data will change many many times through the day, so it's a matter of time before what the UI is displaying is expired. What's the way around…
user1017882
0
votes
1 answer

Long Polling Blocks my other Ajax Requests

ok I do use an Apache Server and I have the following situations. I have a JScript that sends a XHR request to a long polling PHP file Now the request is long polled for 15 secs Now while the long poll is in progress I try to send another XHR…
Netorica
  • 18,523
  • 17
  • 73
  • 108
0
votes
1 answer

PHP: Monitor text file for changes

I'm working on a project that parses tweets and saves them to a db. I'd also like to create a local, front end interface that will live update when the tweet comes in (no page reloads etc.) I'm using the basic AJAX/PHP polling model seen here. But…
G.Thompson
  • 807
  • 2
  • 11
  • 25
0
votes
1 answer

other requests are not accepted in timely manner by apache due to comet implementation

hi i have implemented comet(long polling request) base application where my application updates content based on server response my php code is as below,my application uses zend framework ini_set('set_time_limit', 300); //get zend session…
Maulik Shah
  • 421
  • 2
  • 10
0
votes
1 answer

implementing long polling with nodejs

I implemented social-network-like notification, using long-polling with nodeJs database, I'm using redis and cassandra I saved a timestamp as "user_read" in redis everytime users read the notifications, I refresh the "user_read" when database got…
williamC
  • 176
  • 2
  • 12
0
votes
1 answer

Buffering the background scripts output to the front end at each instance

I am developing a web application, wherein I am using Java as my front end and shell script as my back end. I need to process lot of files in shell script, let me assume that I need to process 1000 files in shell script. I am using the following…
NandaKumar
  • 905
  • 4
  • 15
  • 19
0
votes
1 answer

What is the best way to automatically reestablish long polling request?

I am working on a project using long polling, as the nginx server will response 504 Gateway Timeout after the connection established 1 minute or so, I write the error handling function in the $.ajax so that it can automatically reconnect to the…
Reorx
  • 2,801
  • 2
  • 24
  • 29