feat: update socket for client communictaion

This commit is contained in:
karishmas6
2024-06-05 04:35:23 +05:30
parent b357172b39
commit 649de7e9f6

View File

@@ -269,4 +269,13 @@ export class WorkflowInterpreter {
return this.interpreter !== null;
};
/**
* Updates the socket used for communication with the client (frontend).
* @param socket Socket.io socket instance enabling communication with the client (frontend) side.
* @returns void
*/
public updateSocket = (socket: Socket) : void => {
this.socket = socket;
this.subscribeToPausing();
};
}