Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 65f38dc

Browse files
committed
Update ConnectionManager.js
Pulling in changes from PR #509
1 parent 56330f8 commit 65f38dc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

appshell/node-core/ConnectionManager.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,17 @@ maxerr: 50, node: true */
170170
this._send("commandResponse", {id: id, response: response });
171171
}
172172
};
173-
173+
174+
/**
175+
+ * Sends a progress message to command execution (async commands only)
176+
+ * @param {number} id unique ID of the command that was executed. ID is
177+
+ * generated by the client when the command is issued.
178+
+ * @param {string} message Progress message
179+
+ */
180+
+ Connection.prototype.sendCommandProgress = function (id, message) {
181+
+ this._send("commandProgress", {id: id, message: message});
182+
+ };
183+
174184
/**
175185
* Sends a response indicating that an error occurred during command
176186
* execution

0 commit comments

Comments
 (0)