summaryrefslogtreecommitdiff
path: root/js/codeq/comms.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-22 11:33:54 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-22 11:33:54 +0200
commitac1ea2004cdb34c83115d11b0c3a0c9c2f93a726 (patch)
treeeb15320e0d91a3e02aa1bdc8df36a45e476c8194 /js/codeq/comms.js
parent9043754b69c64419c285a703daf203b87af70506 (diff)
Add support for run/stop in the Python interface
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r--js/codeq/comms.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index 9e69526..b04a2fc 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -250,13 +250,18 @@
return this.send(query);
},
- sendPush: function commsSendPush (json) {
+ sendPythonExec: function commsSendPythonExec (json) {
+ json['action'] = 'python_exec';
+ return this.send(json);
+ },
+
+ sendPythonPush: function commsSendPythonPush (json) {
json['action'] = 'python_push';
return this.send(json);
},
- sendPull: function commsSendPull (json) {
- json['action'] = 'python_pull';
+ sendPythonStop: function commsSendPythonStop (json) {
+ json['action'] = 'python_stop';
return this.send(json);
},