From 649de7e9f67ac095457a415ad0ae96aaaa751c32 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 5 Jun 2024 04:35:23 +0530 Subject: [PATCH] feat: update socket for client communictaion --- server/src/workflow-management/classes/Interpreter.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/workflow-management/classes/Interpreter.ts b/server/src/workflow-management/classes/Interpreter.ts index 890b0cf2..b3b6b6a9 100644 --- a/server/src/workflow-management/classes/Interpreter.ts +++ b/server/src/workflow-management/classes/Interpreter.ts @@ -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(); + }; }