mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-629: Merge support for argv instruction.
This commit is contained in:
@@ -447,6 +447,31 @@ Guacamole.Client = function(tunnel) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Opens a new argument value stream for writing, having the given
|
||||||
|
* parameter name and mimetype, requesting that the connection parameter
|
||||||
|
* with the given name be updated to the value described by the contents
|
||||||
|
* of the following stream. The instruction necessary to create this stream
|
||||||
|
* will automatically be sent.
|
||||||
|
*
|
||||||
|
* @param {String} mimetype
|
||||||
|
* The mimetype of the data being sent.
|
||||||
|
*
|
||||||
|
* @param {String} name
|
||||||
|
* The name of the connection parameter to attempt to update.
|
||||||
|
*
|
||||||
|
* @return {Guacamole.OutputStream}
|
||||||
|
* The created argument value stream.
|
||||||
|
*/
|
||||||
|
this.createArgumentValueStream = function createArgumentValueStream(mimetype, name) {
|
||||||
|
|
||||||
|
// Allocate and associate stream with argument value metadata
|
||||||
|
var stream = guac_client.createOutputStream();
|
||||||
|
tunnel.sendMessage("argv", stream.index, mimetype, name);
|
||||||
|
return stream;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new output stream associated with the given object and having
|
* Creates a new output stream associated with the given object and having
|
||||||
* the given mimetype and name. The legality of a mimetype and name is
|
* the given mimetype and name. The legality of a mimetype and name is
|
||||||
|
Reference in New Issue
Block a user