[Spice-devel] [spice-html5][PATCH v2 10/13] Document onsuccess callback

Cédric Bosdonnat cbosdonnat at suse.com
Thu Feb 14 09:44:53 UTC 2019


---
 src/main.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main.js b/src/main.js
index be73828..4a37b55 100644
--- a/src/main.js
+++ b/src/main.js
@@ -56,6 +56,8 @@ import { resize_helper, handle_resize } from './resize.js';
 **          onagent     (optional)  If given, a function to be called when
 **                                  a VD agent is connected; a good opportunity
 **                                  to request a resize
+**          onsuccess   (optional)  If given, a function to be called when the
+**                                  session is successfully connected
 **
 **  Throws error if there are troubles.  Requires a modern (by 2012 standards)
 **      browser, including WebSocket and WebSocket.binaryType == arraybuffer
-- 
2.19.2



More information about the Spice-devel mailing list