comet

AJAX Progress Bar - Polling, Comet?

Hi I would like some advice on how to implement the following: I would like to make my users aware of the progress of a task that is running on my server via AJAX. My server runs a PHP script that downloads a file via shell command using the popen function. It periodically echos/prints what is happening. I would like to capture this ou...

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 Comet requires you to keep a persistent connection open to each browser client. Using mod_php this means tying up an Apache child...

GWT / Comet: any experience?

Hello fellow developers, Is there any way to "subscribe" from GWT to JSON objects stream and listen to incoming events on keep-alive connection, without trying to fetch them all at once? I believe that the buzzword-du-jour for this technology is "Comet". Let's assume that I have HTTP service which opens keep-alive connection and put J...

Choosing and deploying a comet server.

I want to push data to the browser over HTTP without killing my django/python application. I decided to use a comet server, to proxy requests between my application and the client (though I still haven't really figured it out properly). I've looked into the following engines: orbited cometd ejabberd jetty Has anyone had any experience...

I like to implement Flex to Server comet / long polling for games

I need to try and implement port 80 flex games to server method. I like to ask if someone already did it before or it is possible to manage flash/flex multi user games with long polling / comet server ? ...

Example of a Comet implementation in Flex

I'm looking for an example of how to do a long running HTTP call from Flex/Actionscript to a Java server that supports Comet. Also long running http calls are usually used for pushing data from the server to the client, I would like to used for "streaming" data to the client, for example data for a large table. The client should show alr...

I am using a comet server and I want it to interact with C++

I am using persevere for an application I am writing that controls remote hardwere. Persevere is written in Java and doesn't supply an alternative API. I am using a web-based GUI as the control panel. So far, so good. I can get and set data using REST channels like dojo does but the problem is that I don't really know how to use REST c...

How is GMail Chat able to make AJAX requests without client interaction?

All HTTP responses require the client to initiate them, even those made using AJAX. But GMail's chat feature is able to receive messages from other users, even when I'm just sitting in my comfy computer chair watching but not interacting with the browser. How did they do it? ...

Make a web chat with twisted

I've made a chat that I can connect with Telnet to. My chat is currently implemented as a Twisted TCP Server. How do I transform it into a chat for the browser? I suppose I should use a comet server (e.g. Orbited) to be able to serve static HTML and dynamic content simultaneously. Is such a comet server necessary for a fast and reliable...

Check connection is active in ASP.NET

I work on a Comet application written in ASP.NET. There is an array of active connection contexts (HttpContext). And there is a thread that should periodically iterate through the collection and check theirs state. So application architecture is not thread-per-request. What is the best way to check that a connection is active (not close...

Can I use Orbited as a HTTP server for dynamic content?

Comet Server Orbited can serve static files from paths specified in it's config file under [static] section. I wonder if it's possible to serve dynamic content via orbited? ...

Keeping a jQuery .getJSON() connection open and waiting while in body of a page?

I'm writing a basic push messaging system. A small change has caused it to stop workingly properly. Let me explain. In my original version, I was able to put the code in the of a document something like this: <head> ...text/javascript"> $(document).ready(function(){ $(document).ajaxStop(check4Updates); check4Updates(); ...

Reverse Ajax without Comet?

Is it possible to let the web server send a message to the web browser without Comet? Every major web company like Facebook and Google uses Comet for this purpose and it just seems like an ugly hack waiting to disappear if tcp connections were enabled for major browsers. ...

Online tutorials for implementing comets (server push)

I want to be able to push prices to a web interface as they become available (rather than having to be requested each time). I have spent hours looking for tutorials on Google. However I cannot seem to find anything that holds the hand, they all tend to be descriptions of how Comets work. Can you recommend a tutorial, or set of tutoria...

Which is better JETTY COMET implementation or Resin COMET implementation

We've been using JETTY's suspended servlet implementation to roll our own COMET web applications using JSON messages and XStream. Does anyone have experience with Resin's implementation of COMET and how they compare? Also more generically than COMET does anyone have suggestions on the best Java Suspended servlet 3.0 implementation. H...

Clustering COMET using Terracotta

We're trying to cluster a COMET web application written in Java using JETTY 7.0's implementation of suspended servlet 3.0 API. Does anyone have experience using Terracotta in a suspend/resume servlet web application. Greg Wilkins of JETTY mentions some issues with COMET performance with Terracotta. Clustering COMETD with Terracotta ...

Why don't browsers let you open a regular connection instead of Ajax or Comet?

If you want to open a two-way connection between the browser and server, the only choice is to poll (hammer the server), or use comet (crufty and prone to disconnects). Why don't browsers just let you open up a plain TCP connection? Is there any practical benefit to not having this ability? ...

Advanced chat web-app

Hello, I am looking to implement something similar to facebook/gmail chat. I know they use comet & jabber as their technology. But am confused about a couple of things. Do i really need jabber? Can I instead use a simple mysql table with from, to, message, sent and recd? Are there any inefficiencies in using mysql? Is there any perfor...

What is the simplest way to implement "server push"-like behavior for a web page?

I'm attempting to make a very simple 2-person chatroom for my Django site. I'm learning AJAX to do this. I need parts of the web page to update without user interaction: When User 1 sends a message, it should appear on User 2's screen When User 1 logs off, his status should change to "offline" on User 2's screen What is the simplest ...

Advantage of COMET over long request polling?

I've been wondering if there is a real advantage to using COMET / push-technologies over the much simpler polling with long requests where the server will wait a certain maximum time for new events to happen before telling the clients that nothing happened. Both technologies have similar client latencies and while common wisdom is that ...