mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
Migrate to cleaner InputStream and OutputStream with Reader wrappers.
This commit is contained in:
@@ -43,17 +43,9 @@ Guacamole.OutputStream = function(client, index) {
|
||||
*/
|
||||
this.index = index;
|
||||
|
||||
/**
|
||||
* Fired when the stream is being closed due to an error.
|
||||
*
|
||||
* @param {String} reason A human-readable reason describing the error.
|
||||
* @param {Number} code The error code associated with the error.
|
||||
*/
|
||||
this.onerror = null;
|
||||
|
||||
/**
|
||||
* Fired whenever an acknowledgement is received from the server, indicating
|
||||
* that a stream operation has completed.
|
||||
* that a stream operation has completed, or an error has occurred.
|
||||
*
|
||||
* @event
|
||||
* @param {String} message A human-readable status message related to the
|
||||
@@ -67,14 +59,14 @@ Guacamole.OutputStream = function(client, index) {
|
||||
*
|
||||
* @param {String} data The base64-encoded data to send.
|
||||
*/
|
||||
this.write = function(data) {
|
||||
this.sendBlob = function(data) {
|
||||
client.sendBlob(guac_stream.index, data);
|
||||
};
|
||||
|
||||
/**
|
||||
* Closes this stream.
|
||||
*/
|
||||
this.close = function() {
|
||||
this.sendEnd = function() {
|
||||
client.endStream(guac_stream.index);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user