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
1 answer

Polling jQuery ajax for each. Check if element does not exist, if so prepend to div

I have a div #notification-data which on $(document).ready gets populated with multiple
  • from $.post. The $.post then gets called setTimeout(poll_n,9000); so data is up-to-date. So im not updating all the data every time, I would like to do…
    Codded
    • 1,256
    • 14
    • 42
    • 74
    0
    votes
    1 answer

    Client-Server-Client messaging with Windows Azure

    Let's assume there are number of clients that asynchronously send messages for processing to Azure Cloud. The messages are pushed to a queue and processed relatively quickly (few seconds for each). What I want is to send the processing result BACK…
    ohavryl
    • 397
    • 1
    • 5
    • 17
    0
    votes
    1 answer

    Polling vs Long-polling vs Push (books and scientific papers)

    I'm writing master's thesis and I've already wrote much about Ajax vs Comet vs WebSocket comparison based on the information I've found on the internet. But I need some scientific research to put into reference list.
    Pavel Staselun
    • 1,970
    • 1
    • 12
    • 24
    0
    votes
    1 answer

    Java Atmosphere @MeteorService compile via cmd?

    I am trying to understand Atmosphere API. Trying to compile a given example with CMD. given at - https://github.com/Atmosphere/atmosphere/wiki/Getting-Started-with-Meteor,-WebSocket-and-Long-Polling When i run the command - javac -cp .;C:\lib\*…
    0
    votes
    1 answer

    "Piecemeal" AJAX response from Ruby-powered mathematical model?

    I'm a somewhat new web designer and developer working on a public health project to estimate the course of HIV/AIDS in a population in different countries. Our test version is here: http://globalhealthdecisions.com/test/tool/ We built this epidemic…
    alexgoodell
    • 23
    • 1
    • 6
    0
    votes
    1 answer

    Can JGroups be utilized to form the Java equivalent of COMET/Long-Polling?

    In webdev-land, COMET/Lojg-Polling allows the server to maintain an open connection with each client and push data to each client as it becomes available. JGroups seems like it can be made to do the same thing between a client Swing application and…
    IAmYourFaja
    • 55,468
    • 181
    • 466
    • 756
    0
    votes
    1 answer

    How should I implement server push so that the browser is updated with DB updates?

    I am reading on various ways of doing server push to client side(broswer).I would like to understand the best approach out of these. Long polling -- To be avoided as it holds up resources longer on server side. Node JS async delegation using…
    0
    votes
    0 answers

    AJAX long polling - waiting for php to finish while trying to get to another page

    I want to create notification system in my company's erp similar to Facebook one. To maintain good performance, I use long polling - looped ajax querying php script for number of seconds. Everything works fine, until I try to go to another page…
    ex3v
    • 3,518
    • 4
    • 33
    • 55
    0
    votes
    1 answer

    how to implement polling iphone sdk?

    I want to know how we can auto refresh a uitableview by using polling. I have a table which contains messages users sent. So when I load the view i use AFTNetworking to get the JSOn response and display it in the uitableview. Now if the user stays…
    veereev
    • 2,650
    • 4
    • 27
    • 40
    0
    votes
    1 answer

    Does jQuery have a built in function to do long polling?

    I am doing Java Chat application . I will call the pingAction() in my external Jquery when my application get initiated. I used this site for reference of long polling with JQUERY - …
    Human Being
    • 8,269
    • 28
    • 93
    • 136
    0
    votes
    1 answer

    Long-polling web chat: more devices of one user

    I'm working on web chat where user log in and can send message to any other logged in user. This is realized using long polling on client side and async java servlet on server side. It works well, until I log in under the same name from two…
    xwinus
    • 886
    • 3
    • 12
    • 28
    0
    votes
    3 answers

    Long polling JQUERY chat using sleep()

    The following code makes the web loading for like 10 minutes and I dont know why! function chatheartbeat(){ include("config.php"); $useradn = $_SESSION['displayname']; $query = "select * from chat where (userbdn = '".$useradn."' AND…
    GuyChabra
    • 105
    • 1
    • 3
    • 12
    0
    votes
    1 answer

    Do you post old data back when doing a long poll?

    I think I understand the concept of polling fairly well. You basically just request data from the server, but only once the data has changed, does the server return it. Straight forward stuff. My problem comes with this example. Let's say I have…
    rockstardev
    • 13,479
    • 39
    • 164
    • 296
    0
    votes
    1 answer

    Long polling on a penny auction site?

    On a penny auction site, there are a few fundamental requests that happen over time, namely: Bidding request (when someone places a bid) Timer updates Leading bidder updates I am trying to understand long polling a bit better and I'm stuck with…
    rockstardev
    • 13,479
    • 39
    • 164
    • 296
    0
    votes
    2 answers

    Process part of a POST request before it finished, is that possible?

    curl -v -F "file=@bigfile.zip" http://server/handler I know the "bigfile.zip" will be split to several parts and sent to server part by part, that might need a long time. So how could I read the first part before the last part sent? If that's…
    Alix
    • 256
    • 3
    • 17