comet

Long Polling on IIS

I developed a progress bar widget in CF and it works wonderfully on my local machine running on a built-in CF8 development server. However, our production and staging boxes are running Win2k3 and IIS which I can't get to respect the CFFLUSH tag. Even padding the buffer with responses doesn't work too well as it is rather unpredictable wh...

PHP/MYSQL AJAX Chat

Looking for an open source php/mysql ajax chat room (not 1-to-1 private chat). What would you guys recommend? I am going to need to make hundreds of instances of the chat room (eg. each user group has their own exclusive chat room) ...

Cross-browser implementation of "HTTP Streaming" (push) AJAX pattern

Client request web page from server. Clent then requests for extra calculations to be done; server performs series of calculations and sends partial results as soon as they are available (text format, each line contains separate full item). Client updates web page (with JavaScript and DOM) using information provided by server. This seem...

Configuring lighttpd for many lightweight concurrent Keep-Alive http connections

I am using lighttpd as a front-end proxy to my custom HTTP based application server. I need to configure lighttpd for a large number (let's say around 5000) simultaneous http connections which have a large timeout and KeepAlive setting. Each connection will sit around mostly idle. Imagine an HTTP based chat server. My HTTP server is usi...

Long polling with NSURLConnection

I'm working on an iPhone application which will use long-polling to send event notifications from the server to the client over HTTP. After opening a connection on the server I'm sending small bits of JSON that represent events, as they occur. I am finding that -[NSURLConnectionDelegate connection:didReceiveData] is not being called un...

Java Servlets: why is PrintWriter.flush() not flushing?

I am currently writing a Comet application which requires me to send chunks of data at a time on a persistent connection. However, I'm having trouble flushing the message to the client before closing the connection. Is there any reason the PrintWriter.flush() method is not behaving like I think it should? This is my Tomcat Comet imple...

How to avoid dead message in Comet chat?

I am doing Comet chat with Erlang and PHP. But now I think I met a problem: the polling connection will disconnect and reconnect automatically in about a certain time (I set this with 10 seconds), so there will be a period of time that the user doesn't connect to chat server. If a user send message at that time, the message will be dead...

Are WCF polling duplex services usable by other clients?

I'm writing a server app with a silverlight client. At some point I'd like non-silverlight clients to be able to use my services. Right now I've written some WCF services which get polled, but I'm not happy with the responsiveness. I'm thinking of switching the code over to using Silverlight/WCF duplex polling, but if I do that, will I b...

How to call this Comets application from a web page

I have implemented the two classes shown at http://tomcat.apache.org/tomcat-6.0-doc/aio.html which gives a messenger application using Tomcat's comet implementation. How do I connect this to a web interface and get something to display. I am thinking these are the basic steps (I don't know the details). I should create some tradition...

nginx proxy to comet

I need some help from some linux gurus. I am working on a webapp that includes a comet server. The comet server runs on localhost:8080 and exposes the url localhost:8080/long_polling for clients to connect to. My webapp runs on localhost:80. I've used nginx to proxy requests from nginx to the comet server (localhost:80/long_polling prox...

Comet & PHP: How to use Comet with a PHP Chat System ?

I have to build a simple chat system in PHP using Comet. I don't know what would be the best approach to this project. What is the best technique (cross-browser would be nice) to use, and how to implement it? What libraries can I use that already have comet support. (I don't want to use the Bayeux Protocol) I already have a PHP backen...

Timeout behavior of different browsers?

I am writing an on line chat room based on AJAX/COMET. My design is: Request ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump data ----------------- wait -------------------------> send dump d...

where can i lern about comet and client push methods?

Hello all i like to learn how to implement basic "comet" or client push methods something like meebo from server and client side , where i can find good and clear spec? Thanks ...

API Model for Server Push Technologies (COMET)

Hello, I'm whiling to add a support of Server Side events to CppCMS. I understand the technical part of what to do on the level of communication: Client sends long polling XmlHTTPRequest, and waits for respond, server accepts the connection and does not respond until server side event occurs and sends the response to the client. The cli...

Simplest way to implement backend server for multiplayer JavaScript game? (COMET/longpolling)

I've been writing a game in JavaScript, and it's time to make it multiplayer. I would like to use AJAX long-polling to get the current game state, as well as implement the lobby. The server just needs to perform basic functions, like store the gamestate in the mysql database, retrieve the gamestate, and format the scoreboard. I think...

Comet JavaScript libraries that support multiple windows

Are there any free Comet JavaScript libraries that allow multiple windows/tabs to reuse the same connection? In other words, when you open a second window, it detects that you have another window open under the same domain. Rather than open a new connection, it starts listening to the other window's connection. That way it can stay withi...

gwt+comet need configure tomcat?

hi, i am refering to this tutorial http://www.jroller.com/masini/entry/a_comet_implementation_for_google . is it a must to configure tomcat when using comet? can gwt+comet run on hosted mode or required -noserver? ...

Problem of choosing comet server

I want to write a php site which uses the comet technology for real time update. I have a few questions: Is it better to use a comet server? Which comet server is good? For comet server (e.g. orbited), I have to first install the python based orbited server and then write php file to create socket to connect to the comet server. Right...

Maximum server file access frequency

I'm trying to create a AJAX push implementation in PHP using a Comet long-polling method. My code involves using file_get_contents() to read a file repeatedly to check for any messages to send to the user. To reduce server load, I'm using two text files; one containing the actual command and one acting as a "change notifier", which eithe...

Performance of dojo (logging, comet, sliders)

I have some performance issues in my JavaScript, and I'm not having much success instrumenting it. One of the things I've tried is using firebug's profile tool. It reports that the top single call was to dojo's log(). Unhelpfully, it reports a line number from the compressed script, so I can't tell what's causing the problem. But it ...