Linked Questions
187 questions linked to/from How do I implement basic "Long Polling"?
1 vote
1 answer
436 views
automatically refresh page when someone makes changes [duplicate]
I have a page where i have some text that I take from the database. While that page is open and someone else changes the text in the database, I wan't to make it so that my page is immediatly ...
84 votes
11 answers
56k views
Using comet with PHP?
I was thinking of implementing real time chat using a PHP backend, but I ran across this comment on a site discussing comet: My understanding is that PHP is a terrible language for Comet, because ...
52 votes
7 answers
7k views
HTTP Response before Request
My question might sound stupid, but I just wanted to be sure: Is it possible to send an HTTP response before having the request for that resource? Say for example you have an HTML page index.html that ...
39 votes
8 answers
61k views
Is there a way to 'listen' for a database event and update a page in real time?
I'm looking for a way to create a simple HTML table that can be updated in real-time upon a database change event; specifically a new record added. In other words, think of it like an executive ...
19 votes
7 answers
36k views
Push notification for Java web app [closed]
Currently I am working on a web app which uses Spring 3.1 and Hibernate 4. As per the requirement, I want to implement push notifications like Facebook does, on a JSP page. If you have any ...
19 votes
7 answers
39k views
how does long polling work javascript?
Hi I understand that in long polling you keep the connection with the server open for long till you a get a response back from the server and then poll again and wait for the next response. However i ...
43 votes
3 answers
36k views
What is a RESTful way of monitoring a REST resource for changes?
If there is a REST resource that I want to monitor for changes or modifications from other clients, what is the best (and most RESTful) way of doing so? One idea I've had for doing so is by providing ...
39 votes
3 answers
61k views
Push notifications from server to user with PHP/JavaScript
Short: Is there a way to push data from the server to a logged in user session without that user needing to make an HTTP request? Long(er): I'm building an HTML5 application, on an Apache/PHP/MySQL ...
11 votes
6 answers
4k views
Online gaming, or something faster then ajax for sending/receiving data
I'm making this as short as I can. What I've done so far: The game I have will be running with JavaScript using setTimeout or setInterval. It's not flash or anything special. What I have made so far ...
20 votes
9 answers
17k views
COMET (server push to client) on iPhone [closed]
I'm looking to establish some kind of socket/COMET type functionality from my server(s) to my iPhone application. Essentially, anytime a user manages to set an arbitrary object 'dirty' on the server, ...
12 votes
6 answers
35k views
Sending data from server to client?
I have a php server file and an HTML client file, the HTML file send ajax requests to the server to retrieve data every 500 ms, this although works as expected it's causing high usage of memory and ...
24 votes
1 answer
24k views
A RESTful approach to data synchronization
Assume the following scenario A web application serves up resources through a RESTful API. A number of clients consume this API. The goal is to keep the data on the clients synchronized with the web ...
16 votes
6 answers
20k views
Method for streaming data from browser to server via HTTP
Are there any XHR-like browser APIs available for streaming binary to a server over HTTP? I want to make an HTTP PUT request and create data programmatically, over time. I don't want to create all ...
9 votes
7 answers
20k views
Show a txt file on a webpage which updates every second
I'm sort of shooting in the dark here; I have no knowledge how to do this so some pointers and/or links to helpful tutorials would be great: I have a website that I want to display a text file (...
7 votes
9 answers
21k views
What's easiest way to get Python script output on the web?
I have a python script that runs continuously. It outputs 2 lines of info every 30 seconds. I'd like to be able to view this output on the web. In particular, I'd like the site to auto-update (add ...