comet

Is there some way to PUSH data from web server to browser?

Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load. Is there any better method (even using Ajax) other than polling the server frequently? ...

Comet implementation for ASP.NET?

I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the Comet concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0). The solutions I found (or could think of, for that matter) require leaving a ru...

Are writes from within a Tomcat 6 CometProcessor non-blocking

I have a CometProcessor implementation that is effectively doing a Multicast to a potentially large number of clients. When an event occurs that needs propagated to to all the clients, the CometProcessor will need to loop through the list of clients writing out the response. If writing responses block then there is the possibility that...

Comet and jQuery

I've done some research into server push with javascript and have found the general consensus to be that what I'm looking for lies in the "Comet" design pattern. Are there any good implementations of this pattern built on top of jQuery? If not, are there any good implementations of this pattern at all? And regardless of the answer to tho...

Problem With Python Sockets: How To Get Reliably POSTed data whatever the browser?

Hello, I wrote small Python+Ajax programs (listed at the end) with socket module to study the COMET concept of asynchronous communications. The idea is to allow browsers to send messages real time each others via my python program. The trick is to let the "GET messages/..." connexion opened waiting for a message to answer back. My probl...

Is Http Streaming Comet possible in Safari?

By HTTP Streaming Comet, I mean the "forever iframe" / "forever xhr" variations that don't close the connection after data has been pushed from the server, as opposed to standard polling and long polling which close and resend a new request for every server push event. I looked at the dojo.io.cometd package and it seems they only have p...

Which open-source comet/ reverse-ajax libraries will you recommend to be used with Tomcat 5.5? Why?

I have seen continuations in Jetty 6.0 that addresses scaling for comet/reverse-ajax applications. Are there any other libraries/frameworks to be used with Tomcat 5.5? ...

IE7 fails after reload of Orbited powered page

Hello! I am working on an Orbited-powered website and I'm experiencing some annoying behavior with IE7. Everything works fine and dandy in FF3, but in IE7, I get a recurring error if I reload the page: Error: Can't execute code from a freed script In other words, the site works in IE7 when you first browse to it, but breaks after a ...

Persistent Connection to Web Server (Like AJAX on Web)

I am wanting to create a program that talks with a Cometd server to allow for pushing of data to the app. I have done this on the web side using AJAX, but I am a little unsure of the best way to do this with Cocoa. I can make a standard connection using NSURLRequest and NSURLConnection, but how do I keep this connection alive so I can ...

Ajax "Is there new content? If so, update page" - How to do this without breaking the server?

It's a simple case of a javascript that continuously asks "are there yet?" Like a four year old on a car drive.. But, much like parents, if you do this too often or, with too many kids at once, the server will buckle under pressure.. How do you solve the issue of having a webpage that looks for new content in the order of every 5 second...

Comet applications without using IFrames

I am just getting started creating an AJAX application using server side push. I am using Grizzly Comet on Glassfish V2. Almost all the sample applications use IFrames for updating content on the client side. I want to stick to using JavaScript only. Are there any such sample applications (preferably ones that do not use a JavaScript lib...

Simple "Long Polling" example code?

I can find lots of information on how Long Polling works (For example, this, and this), but no simple examples of how to implement this in code. All I can find is cometd, which relies on the Dojo JS framework, and a fairly complex server system.. Basically, how would I use Apache to serve the requests, and how would I write a simple sc...

COMET (server push to client) on iPhone

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, by say, updating their Address.. the feedback should be pushed from the server to any clients keeping a live poll to the server. The buzzwo...

streaming binary data over http

I am looking into streaming binary data into a browser (through http). I am looking for opinions as to good ways to go about doing this. Ultimately I will have a real time data source and I would like to manipulate this data and display it (in real-ish time) in a browser. Firefox comes first, IE would be nice... but I'm not that picky. I...

(How) Can you implement snail HTTP (comet/long lived connections) in Flash ?

I am very interested in streaming data for web-applications. I have tried out some javascript libraries, but the hacks and browser-incompatibilities drive me crazy ! HTML5 will hopefully standardize streaming data, but until then, hopefully I can resort to Flash to make this work in all browsers. Unfortunately, I'm not very familiar with...

Is there an alternative of ajax that does not require polling without sever side modifications?

I'm trying to create a small and basic "ajax" based multiplayer game. Coordinates of objects are being given by a PHP "handler". This handler.php file is being polled every 200MS, by using ajax. Since there is no need to poll when nothing happens, I wonder, is there something that could do the same thing without frequent polling? Eg. Co...

Connecting http request/response model with asynchronous queue

What's a good way to connect the synchronous http request/response model with an asynchronous queue based model? When the user's HTTP request comes it generates a work request that goes onto a queue (beanstalkd in this case). One of the workers picks up the request, does the work, and prepares a response. The queue model is not request...

Compatibility of Comet with current technology

I hear that I can use Comet as a server push technology along with my Ajax code to increase the performance of my web applications. How mature this Comet technology? Is it supported by all web servers, programming languages and browsers? What are the disadvantages of using Comet? ...

Parameters passed to cometd.subscribe()

Hopefully this isn't too specific/small a question, but I was wondering if anyone knew what the possible arguments are for the dojo cometd subscribe() function? The few examples I've seen indicate two parameters cometd.subscribe(channel, call_back); but a few implementations I've seen include a boolean and a possible object to the pa...

port listening in javascript

I'm trying to write some simple chat client in javascript, but I need a way to update messages in real time. While I could use the xmlhttprequest function, I believe it uses up a TCP/IP port on the server and possibly more importantly, is not allowed on my current hosting package. It doesn't seem like an ideal solution anyway as it seems...