From 968c50445623e080f490d66da91e9e74e358c05b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 7 Jun 2024 23:27:11 +0530 Subject: [PATCH] chore: comments --- server/src/workflow-management/classes/Generator.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index cd48f96f..617da3e2 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -39,9 +39,19 @@ interface MetaData { * @category WorkflowManagement */ export class WorkflowGenerator { - + + /** + * The socket used to communicate with the client. + * @private + */ private socket : Socket; + /** + * The public constructor of the WorkflowGenerator. + * Takes socket for communication as a parameter and registers some important events on it. + * @param socket The socket used to communicate with the client. + * @constructor + */ public constructor(socket: Socket) { this.socket = socket; this.registerEventHandlers(socket);