You can't build "real" CF instant messaging app with pure Coldfusion,
because CF apps work on top HTTP request/response model. You can't push data
to the client.

You'll need a client able to open a constant connection to the server, which
require a special clients (java applet, flash player...) and a special
server (socket server).

If necessary, you can simulate a kind of instant messaging by using the CF
application scope on the server side, and check each time a client make a
request to see if it has pending messages, but if the client stop to make
request, it will never receive any messages...

It is exactly the same problem when you try to build a chat application with
CF.
Usually, you put a javascript "refresh" command in the HTML page to check
every x seconds to get new content from the server, but this definitely not
an elegant solution (even if the "reload and check" page is hidden in a one
pixel page in a frameset ;).

The other issue : you'll never be able to know when the client close the
browser (because most of the time, people don't use the "Logout" button that
we put to try to solve this problem...). Again, the work around would be to
put a javascript "onClose" command that open a pop-up to execute a
deconnection script on the server...

A lot of work arounds for a pretty bad result.

The best instant messaging app would be Flash Communication Server with a
Flash MX client.
It is very easy to build with the new Flash Communication Components, but it
requires a FlashCom license...

Benoit

-----Message d'origine-----
De : Eric [mailto:[EMAIL PROTECTED]]
Envoy� : lundi 12 ao�t 2002 17:36
� : CF-Talk
Objet : Instant Messaging (subheading: Ashley King?)


  I'm trying to find a good CF instant messaging app... I don't need a
whole bundle with a chat program, just the IM... anyone know of one?

  sub: a while back someone named Ashley King had written one that's posted
ont he dev exchange, but I've never been able to get it to work, nor have I
been able to contact the author for help... anyone know how to contact this
person?

  thanks in advance for any help... :)

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to