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
0 answers

Django Comet/Long Pollling application

I am working a real-time lighting control system. User can turn on/off lights through web interface, but when another person turn on/off light switch manually the web interface should be updated immediately. That's the real-time goal I want. The…
Jiechao Li
  • 356
  • 3
  • 7
  • 17
0
votes
0 answers

Reducing traffic and server pay load when polling .NET web service

I have an Android (business) application which should create a notification and later update its content as soon as possible specific data changes on the server side. The data is accessed through a .NET REST style web service hosted in IIS, which…
Diego Frehner
  • 2,396
  • 1
  • 28
  • 35
0
votes
1 answer

how to find out how many online user with long polling method?

i need best way to find out how many people are online with long polling method. why i need long polling method to acquire that? i need to know how many person are online in my site.of course i can do this with some query and update it in my site by…
HiDd3N
  • 494
  • 6
  • 23
0
votes
0 answers

IIS long polling AsyncController

I ran into an interesting problem in IIS and I would like to get to the bottom of it. I have an app that long polls . i have implemented my own long polling. A request comes in. I block that req and write to it from my worker thread. then…
Evren Bingøl
  • 1,306
  • 1
  • 20
  • 32
0
votes
1 answer

Why this long polling is not working?

I am only getting first time message and then code stop working. I am newly learning long polling(I know,there gona be lot of errors and stupdity also ).Plz help. Jquery function is here. var timestamp = null; var last_msg_id = 1; function…
Aana Saeed
  • 299
  • 1
  • 4
  • 14
0
votes
1 answer

Controlling just an element from an existing page with nodejs

I'm having a web application build in PHP and I would like to add some real-time functionality to it. What I actually need is to control jut some parts (notifications "elements") of an existing page with nodejs. Would that be possible? I don't want…
sica07
  • 4,896
  • 8
  • 35
  • 54
0
votes
1 answer

JSF: poll server, render button/link, so user can refresh view

The most popular page in my JSF/PrimeFaces web app is a page with p:dataTable with data spanning date ranges (and yes, FROM and TO p:calendar are used for filtering the data along with p:inputText and p:autoComplete components, when/as necessary). I…
Howard
  • 792
  • 8
  • 43
0
votes
1 answer

Is this a legitimate long polling approach?

Is this PhP script a legitimate approach to long polling or is this to heavy on the server? $FoundNewContent = false; $tokens = array(); while(!$FoundNewContent) { usleep(300000); clearstatcache(); $SQL1 = "SELECT * FROM tokens WHERE …
matteok
  • 2,189
  • 3
  • 30
  • 54
0
votes
2 answers

How to fire off and poll a windows service from asp.net page

client wants an asp.net page that has a button to fire off a database update from an external source with hundreds of records. This process takes a long time. He also wants status update as the process runs, like "processing 10 out of 1000 records".…
0
votes
2 answers

WebSockets/Long-Polling on ASP.NET - Shared Host?

I am building a website that will be handling many persistent connections - either through long polling or WebSockets (if I get a host that has IIS8). My question is, are either of these viable on a shared host? Or do I need a true dedicated server?…
user1032657
  • 2,451
  • 6
  • 28
  • 38
0
votes
0 answers

tornado framework doesn't push data from server to client

I've tried to modify an example from "Building the Realtime User Expereince" by Ted Roden to send live twitter data to a client pushed by a server. My app has a class that makes a call to the Twitter Streaming API via tweepy and filters the results…
user94628
  • 3,641
  • 17
  • 51
  • 88
0
votes
1 answer

Node.js options to push updates to some microcontrollers that have an HTTP 1.1 stack

The title pretty well says it. I need the microcontrollers to stay connected to the server to receive updates within a couple of seconds and I'm not quite sure how to do this. The client in this case is very limited to say the least and it seems…
kjs3
  • 5,758
  • 8
  • 34
  • 49
0
votes
4 answers

Using script tag to pass arguments to JavaScript

I need to implement a cross-site comet http server push mechanism using script tag long polling. (phew...) For this, I dynamically insert script tags into the DOM and the server sends back short js scripts that simply call a local callback function…
Markus A.
  • 12,349
  • 8
  • 52
  • 116
0
votes
1 answer

Admin controlled page force refresh

Basically, for a website I'm playing with, I would love to craft a back-end admin controlled panel where I can click buttons that will fire events on a front-end facing page for clients. I am running an apache server and coding exclusively in…
tr3online
  • 1,429
  • 2
  • 24
  • 45
0
votes
1 answer

Sending notifications to the client when a job completes

I am writing an internal web application using Spring MVC where a user will submit a set of jobs to be completed via a RESTful web service. Each job will only take a few seconds to complete but a user could submit dozens of them. I want the option…
Eddie
  • 919
  • 2
  • 9
  • 21