feat: subscribe to resume event

This commit is contained in:
karishmas6
2024-06-05 04:30:26 +05:30
parent da5f557d13
commit be7f0ad6f1

View File

@@ -84,5 +84,14 @@ export class WorkflowInterpreter {
this.socket.on('pause', () => {
this.interpretationIsPaused = true;
});
this.socket.on('resume', () => {
this.interpretationIsPaused = false;
if (this.interpretationResume) {
this.interpretationResume();
this.socket.emit('log', '----- The interpretation has been resumed -----', false);
} else {
logger.log('debug',"Resume called but no resume function is set");
}
});
}
}