feat: subscribe to pause event

This commit is contained in:
karishmas6
2024-06-05 04:29:55 +05:30
parent b6bf1bfc35
commit da5f557d13

View File

@@ -74,4 +74,15 @@ export class WorkflowInterpreter {
this.socket = socket;
}
/**
* Subscribes to the events that are used to control the interpretation.
* The events are pause, resume, step and breakpoints.
* Step is used to interpret a single pair and pause on the other matched pair.
* @returns void
*/
public subscribeToPausing = () => {
this.socket.on('pause', () => {
this.interpretationIsPaused = true;
});
}
}