[Voiceglue] Catching disconnects
James Green
james.green at mjog.com
Mon Apr 12 15:44:28 UTC 2010
Hi,
I'm building an application in which a <catch
event="connection.disconnect"> is important.
Throughout the lifetime of my application, we are adding stateful
information to a javascript object. This is working just fine as a
system - I can turn it into a JSON packet and submit the data to my web
script half-way through a call.
However, if I instead try to convert the object to JSON within my catch
block, and log the result, all I get is the set of object properties -
per the contructor - minus the state information I've added during the
call. It's as if the engine has created a brand new copy of the object.
I'm wondering if during my call I'm in one context, then in the catch
condition the engine discards that context and somehow brings forward a
representation of the javascript environment as if the call has only
just begun? I am at a loss to explain this otherwise.
Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100412/20c22254/attachment.html>
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2806 - Release Date: 04/12/10 07:32:00
More information about the Voiceglue
mailing list