How to achieve Comet using Flash

2k Views Asked by At

How can Comet (aka Server Push) be used with Flash programs?

What will be needed at server side for the same?
Does this require any customised servers or will normal IIS or Apache do?

Also is Juggernaut an example of flash based comet? how does it achieve comet?

4

There are 4 best solutions below

0
On

Assuming you are talking about comet as in this article, you can achieve it using the URLLoader class. At the server side, you can use any technology that you would use with a normal AJAX application like jsp, php, asp etc. I remember reading somewhere that Flash closes the URLLoader connection after 30 seconds - you should take that into account while implementing long polling.

0
On

Flash has an altogether bigger better alternative to comet - it has 'remoting' using rtmp!

There's a whole world of languages and servers for your flash client to talk to; google haxe, rtmpy, rtmpd, red5 for some of the free and Free ones.

One of the haxe tutorials is ... a chat client and server.

3
On

Not exactly sure what you want but you can establish an open connection between the client and the server.

see this (flash client) and as an example, this (php socket server)

0
On

Juggernaut 2 uses Socket.IO which enables realtime updates in any browser or mobile device. It will use HTML5 WebSockets by default and fall back to Flash, AJAX long polling etc.