From b6bf1bfc352baea5e3988d7904c511633d446eaf Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 5 Jun 2024 04:28:43 +0530 Subject: [PATCH] feat: public constructor with socket for client communication --- server/src/workflow-management/classes/Interpreter.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Interpreter.ts b/server/src/workflow-management/classes/Interpreter.ts index bb0862d2..1fa9d60e 100644 --- a/server/src/workflow-management/classes/Interpreter.ts +++ b/server/src/workflow-management/classes/Interpreter.ts @@ -65,5 +65,13 @@ export class WorkflowInterpreter { */ private interpretationResume: (() => void) | null = null; - + /** + * A public constructor taking a socket instance for communication with the client. + * @param socket Socket.io socket instance enabling communication with the client (frontend) side. + * @constructor + */ + constructor (socket: Socket) { + this.socket = socket; + } + }