FAQ Database Discussion Community


writing an $httpProvider for a long-polling comet app

angularjs,promise,comet,long-polling,angular-promise
TL;DR: Are there examples of Angular with long-polling integration out there? (Examples, specifically Comet examples would be nice!) Our current app uses Angular and Comet. The client sends out long-polling requests that stay open until the server has data to return. When the server returns data, the data payload might...

Google AppEngine channel is opened, client is receiving responses, but socket.onmessage is not being called

javascript,google-chrome,google-app-engine,long-polling,channel-api
I have a webpage that I want to use the google app engine channel API with. I have a token being generated with an external library, which is fed into this very, very simple javascript. <html lang="en"> <body> <script src="jquery-1.6.3.min.js" ></script> <script type="text/javascript" src="/_ah/channel/jsapi"></script> <script type="text/javascript"> var token, channel, socket;...

MAX EXECUTION TIME exceeded in long polling

php,mysql,ajax,comet,long-polling
I am trying to get latest messages from the MySQL table using long-polling . Here if i haven't got any new messages i am making script sleep() for 10 seconds. But in the worst case scenario if i don't receive any new messages for 10 minutes the script will say...

Rails polling with jquery

jquery,ruby-on-rails,ajax,long-polling
I have an index page that lists all users and their statuses (available or unavailable), every user can change his/her status anytime. What I am trying to do is real-time polling to display the most up to date statuses. I have done the Jquery polling function and it works (tried...

Rails 3: Long polling OR sockets with IE 9 support

ruby-on-rails,websocket,long-polling
Our rails app acts as a go-between for the UI and a java-powered API at the back. Basically, rails takes requests from the browser, tells the API what it needs, does some normalization and formatting, then hands it back to the browser. Our app is ALSO an installed app, often...

Does Servlet return response after doGet method has finished?

java,java-ee,servlets,long-polling
Obviously, the doGet method has a return type of void, so, it doesn't return anything. In this sense, I'm using the word "return" to mean send the response back to the client that requested it. I'm trying to implement a long-polling Servlet. It would be beneficial for it not to...