summaryrefslogtreecommitdiff
path: root/js/codeq/comms.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-04 16:55:36 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-04 16:55:36 +0200
commit3752341cf43043fe89742baff35ad74df9fe0f4d (patch)
tree05d7cabe2e55c3f0d4454e32951e74dfffc9ca77 /js/codeq/comms.js
parent3a6dce51204e33fb063c504b442822067b1ac008 (diff)
Initial Python intepreter implementation
Using the new codeq.console library.
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r--js/codeq/comms.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js
index 8b89cde..25c1f8c 100644
--- a/js/codeq/comms.js
+++ b/js/codeq/comms.js
@@ -121,6 +121,16 @@
return send('query', query);
},
+ sendPush: function commsSendPush (json) {
+ json['sid'] = codeq.sid;
+ return send('python_push', json);
+ },
+
+ sendPull: function commsSendPull (json) {
+ json['sid'] = codeq.sid;
+ return send('python_pull', json);
+ },
+
sendHint: function commsSendHint (json) {
json['sid'] = codeq.sid;
return send('hint', json);