Added handler for exit command.

This commit is contained in:
Alexander Kastius
2016-09-01 17:03:28 +02:00
parent 333a72c996
commit 9ec9f01257

View File

@@ -17,11 +17,13 @@ CodeOceanEditorWebsocket = {
initializeSocketForTesting: function(url) {
this.initializeSocket(url);
this.websocket.on('default',this.handleTestResponse.bind(this));
this.websocket.on('exit', this.handleExitCommand.bind(this));
},
initializeSocketForScoring: function(url) {
this.initializeSocket(url);
this.websocket.on('default',this.handleScoringResponse.bind(this))
this.websocket.on('default',this.handleScoringResponse.bind(this));
this.websocket.on('exit', this.handleExitCommand.bind(this));
},
initializeSocketForRunning: function(url) {