Browser behavior with Comet

2 messages Options
Embed this post
Permalink
Shashank Phadke

Browser behavior with Comet

Reply Threaded More More options
Print post
Permalink
Hello All:

I have gotten my Tomcat APR + Atmosphere setup running but am finding that I can interrupt the comet app link if I stop the browser request. I tried the hidden iFrame in teh chat example and sending the XHR request as well.

In FF I see the "transferring data from..." in the status bar. In Safari its the loading.. message in the address bar. Both of these can be stopped using the Esc key -- and my chat comet clients are mute after that.

Any way I can prevent/recover from this? Or, is this a known devil when playing with comet apps?

Cheers,
Shashank
Á. Eduardo García

Re: Browser behavior with Comet

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hello!

I think that behaviour is a "known devil" as you say. Pressing ESC in a browser stops all activity on a page AFAIK, even GIF animations (SWF animations are another kind of beast, so you could use an SWF to prevent that, but if you are to use Flash you won't be using Comet, don't you? ;) ) so I think there is little you can do to prevent that.

But of course, I'm sure there will be some sort of trick to go around that (maybe restarting again the connection using a timeout in Javascript, for example), but I'm as newbie as you, so I'll let our geniuses speak :)

Bye!

On 23 Oct 2009, at 01:12, Shashank Phadke [via Atmosphere users mailling list] wrote:

Hello All:

I have gotten my Tomcat APR + Atmosphere setup running but am finding that I can interrupt the comet app link if I stop the browser request. I tried the hidden iFrame in teh chat example and sending the XHR request as well.

In FF I see the "transferring data from..." in the status bar. In Safari its the loading.. message in the address bar. Both of these can be stopped using the Esc key -- and my chat comet clients are mute after that.

Any way I can prevent/recover from this? Or, is this a known devil when playing with comet apps?

Cheers,
Shashank

Ángel Eduardo García Hernández