From 696493d97a257309f4150bf795ae7819f5360655 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 16 Sep 2011 06:16:41 +0000 Subject: [PATCH] Updated comments --- src/main/resources/tunnel.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/resources/tunnel.js b/src/main/resources/tunnel.js index ae7a85c..b4e52f0 100644 --- a/src/main/resources/tunnel.js +++ b/src/main/resources/tunnel.js @@ -119,6 +119,13 @@ Guacamole.HTTPTunnel = function(tunnelURL) { if (arguments.length == 0) return; + /** + * Converts the given value to a length/string pair for use as an + * element in a Guacamole instruction. + * + * @param value The value to convert. + * @return {String} The converted value. + */ function getElement(value) { var string = new String(value); return string.length + "." + string; @@ -134,8 +141,10 @@ Guacamole.HTTPTunnel = function(tunnelURL) { // Final terminator message += ";"; - // Add message to buffer, restart send loop if finished. + // Add message to buffer outputMessageBuffer += message; + + // Send if not currently sending if (!sendingMessages) sendPendingMessages(); -- 1.7.10.4