diff options
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r-- | js/codeq/comms.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/codeq/comms.js b/js/codeq/comms.js index d7d0935..ad2376e 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -348,6 +348,19 @@ }); }, + loadProblem: function commsLoadProblem (problem_id) { + return this.send({ + 'action': 'load_problem', + 'problem_id': problem_id + }); + }, + + endProblem: function commsLoadProblem (problem_id) { + return this.send({ + 'action': 'end_problem' + }); + }, + 'on': function (event, handler) { var handlers = requestHandlers[event], N, i; |