]> git.proxmox.com Git - mirror_novnc.git/commit
gimite/web-socket-js issue #35: async onclose.
authorJoel Martin <github@martintribe.org>
Sat, 11 Sep 2010 17:44:39 +0000 (12:44 -0500)
committerJoel Martin <github@martintribe.org>
Sat, 11 Sep 2010 17:44:39 +0000 (12:44 -0500)
commit071f2818a8182d88040f5acba3b8e54dc644ef4e
tree65b077e4583cb235035059fe139f58c9dc455b98
parentedc47252604d38fe6f0e229d5f8a206fbcd9dbce
gimite/web-socket-js issue #35: async onclose.

Filed this bug about this issue:
http://github.com/gimite/web-socket-js/issues#issue/35

To work around the flash "recursive call" problem, WebSocket.as has
the onclose event disabled in the close() call and the javascript half
of the close() call does the onclose() call instead. This is fine, but
it needs to be asynchronous to act more like what happens with
a normal WebSockets object. The current behavior is that the onclose()
method is called inline (synchronously) when the close() is called and
this inconsistency make state handling more difficult.
include/web-socket-js/web_socket.js