GUAC-549: Use Guacamole.Status for ack messages.
This commit is contained in:
1 parent
d4a6fd21f7
commit
6a70dd5582
4 files changed
+8
-14
No files matched your search
@@ -39,9 +39,9 @@ Guacamole.StringWriter = function(stream) {
|
||||
var guac_writer = this;
|
||||
|
||||
// Simply call onack for acknowledgements
|
||||
stream.onack = function(message, code) {
|
||||
stream.onack = function(status) {
|
||||
if (guac_writer.onack)
|
||||
guac_writer.onack(message, code);
|
||||
guac_writer.onack(status);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -64,9 +64,7 @@ Guacamole.StringWriter = function(stream) {
|
||||
/**
|
||||
* Fired for received data, if acknowledged by the server.
|
||||
* @event
|
||||
* @param {String} message A human-readable status message related to the
|
||||
* operation performed.
|
||||
* @param {Number} code The error code associated with the operation.
|
||||
* @param {Guacamole.Status} status The status of the operation.
|
||||
*/
|
||||
this.onack = null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user