comet

JSONP Long Polling always loading.

I'm doing long-polling with JSONP and firefox continually pops up the "Loading" spinner making the page seem like it hasn't finished loading. Is there a way to suppress this? I've been told that the Orbited team has hacks for suppressing this, but looking through the Orbited.js code I cannot figure out what they are. Any help would ...

Is there a difference between long-polling and using Comet

I am implementing a system where I need real-time updates. I have been looking at certain scenarios and among all was Comet. Implementing this I do not see any way this is different from traditional long-polling. In both cases you have to send a request, and then the server send a response back. In the browser you interpret the response...

Need help with setting up comet code

Does anyone know off a way or maybe think its possible to connect Node.js with Nginx http push module to maintain a persistent connection between client and browser. I am new to comet so just don't understand the publishing etc maybe someone can help me with this. What i have set up so far is the following. I downloaded the jQuery.come...

Live Updating Widget for 100+ concurrent users

Hi there what would you use if you had to have a div box on your website that would have to be updated constantly with new HTML content from the server. simple polling is probably not very resource inefficient - imagine also having 10'000 users and the div has to update. what is the most efficient or elegant solution for such a proble...

Special technology needed for browser based chat?

On this post, I read about the usage of XMPP. Is this sort of thing necessary, and more importantly, my main question expanded: Can a chat server and client be built efficiently using only standard HTTP and browser technologies (such as PHP and JS, or RoR and JS, etc)? Or, is it best to stick with old protocols like XMPP find a way to in...

Comet, Ajax Push, Reverse Ajax

Hi Guys. Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? ...

Websync: pros and cons?

What is your experience working with Websync (comet framework)? Have you considered any alternatives before using it? So far I can say that Pros: Very straightforward and easy to use Does not require any server configuration Cons: Expensive (turned out to save us tons of money on bandwidth, so not quite) Lack of documentation (th...

Should I use PHP or PHP + J2EE?

I'm going to start a new project with instant message support. I find that there is no good long polling solution in PHP, but there is some good ones in J2EE. I'm wondering if I can integrate PHP and J2EE to get the function? Or should I just use J2EE instead of PHP? Thanks. ...

Comet (long polling) and XmlHttpRequest status

I'm playing around a little bit with raw XmlHttpRequestObjects + Comet Long Polling. (Usually, I'd let GWT or another framework handle of this for me, but I want to learn more about it.) I wrote the following code: function longPoll() { var xhr = createXHR(); // Creates an XmlHttpRequestObject xhr.open('GET', 'LongPollServlet', tru...

ruby rails loop causes server freeze

Hi all: I am working on a Ruby on Rails project on Windows. I have Ruby 1.86 and Rails 2.35 installed. Everything is fine until I tried to implement a comet process. I have the following code written to respond to a long poll javascript request. But everytime this function is called, it will hang the whole rails server, no second reques...

How does Gmail do comet on Opera?

I would like to know how Gmail (or anyone else) does comet on Opera. Here is what I know so far from my experiments. It doesn't use the event-source tag which is broken in Opera 10.51. It doesn't use iframe which displays a spinning throbber and a busy mouse cursor. It doesn't use responseText on xmlhttprequest when readyState = 3 whi...

when long polling, Why are my other requests taking so long?

The client makes 2 concurrent requests. (1 which takes 60 seconds - long polling) and another which is NOT long polling - supposed to return right away. It does return right away when I'm not doing long polling. But as soon as I start doing long polling with the other thread, the other one takes forever to execute. Firebug shows that ...

How can I implement "real time" messaging on Google AppEngine?

I'm creating a web application on Google AppEngine where I want the user to be notified a quickly as possible after certain events occour. The problem is similar to say a chat server in that I need something happening on one connection (someone is writing a message in a chat room) to propagate to a number of other connections (other peop...

How do I view how many concurrent long polling requests there are on my server?

My host is Joyent. My host says I have 15 process limit and prstat -J shows those processes but that doesn't tell me how many long polling requests are currently being served. I could record it myself but that would add alot of performance overhead. I need to know when the server is at its long polling limits. I know this limit occur...

Why is while loop + sleep + ActiveRecord.find in Rails not returning records when it should?

I'm trying to implement a comet approach in my Rails application. I have the following: def poll records = [] start_time = Time.now.to_i while records.length == 0 do records = Something.find(:all, :conditions => { :some_condition => false}) if records.length > 0 break end sleep 1 if Time.now.t...

Should I expect Comet to be this slow?

I have the following in a Rails controller: def poll records = [] start_time = Time.now.to_i while records.length == 0 do records = Something.uncached{Something.find(:all, :conditions => { :some_condition => false})} if records.length > 0 break end sleep 1 if Time.now.to_i - start_time >= 20 ...

How to create simple PHP COMET server page displaying current time?

How to create simple PHP COMET server page displaying current time? I need code implementation (because it should be trivial) - not theory or just links to library sites. Simple text line conteining corrent time and updating each second. ...

Stop browser throbber spinning for Comet using iframe

When I use comet using iframe push, the browser throbber will keep spinning forever while the data is being pushed through the iframe. Lightstreamer is also using iframe, but how do they manage to make it stop? I found a similar post here but it doesn't seem to solve my problem. Any explanation on how lightstreamer works would greatly ...

What's a simple way to web-ify my command-line daemon?

Suppose I have a simple daemon type script that I run on my webserver. I run it in a terminal, with gnu screen, so I can keep an eye on it. That works fine (incidentally, I use this trick). But now suppose I'd like to make a web page where I can keep an eye on my script's output. What's the easiest way to do that? Notes: This is main...

Is ajax + comet + asp.net scalable ?

Thinks at a backgammon online multiplayer game with over 100, or even 1000 online users. The game communication is done using Ajax + 3 seconds Comet connection interval + ASP.NET technology. Is this a real scenario ? Didn't so many Comet open connections block the server resulting in big latency ? ...