Subj : Stateful messaging in javascript To : netscape.public.mozilla.jseng From : "Marc Dostie" Date : Fri Jun 27 2003 03:46 pm Hi All: I'd like to use mozilla to create an XUL based app, but my application logic must be able to sequence a number of TCP/UDP based messages and perform stateful processing. The remote objects respond to these messages, and as such these messages each may timeout or fail in some other way, so I'd need to be able to fire events of message receipt and timeout conditions at the currently executing script. Is this possible? I'm planning on exposing a C++ messaging component as a javascript object via XPConnect. I'm thinking perhaps I can have my underlying messaging component call into the current script; calling something in javascript like ontimeout() or onmessage(). Can I make a script wait idly by while waiting for messages? Any info is much appreciated. Thanks. -Marc .