mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Updated comments
This commit is contained in:
@@ -119,6 +119,13 @@ Guacamole.HTTPTunnel = function(tunnelURL) {
|
|||||||
if (arguments.length == 0)
|
if (arguments.length == 0)
|
||||||
return;
|
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) {
|
function getElement(value) {
|
||||||
var string = new String(value);
|
var string = new String(value);
|
||||||
return string.length + "." + string;
|
return string.length + "." + string;
|
||||||
@@ -134,8 +141,10 @@ Guacamole.HTTPTunnel = function(tunnelURL) {
|
|||||||
// Final terminator
|
// Final terminator
|
||||||
message += ";";
|
message += ";";
|
||||||
|
|
||||||
// Add message to buffer, restart send loop if finished.
|
// Add message to buffer
|
||||||
outputMessageBuffer += message;
|
outputMessageBuffer += message;
|
||||||
|
|
||||||
|
// Send if not currently sending
|
||||||
if (!sendingMessages)
|
if (!sendingMessages)
|
||||||
sendPendingMessages();
|
sendPendingMessages();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user